class
HoneyConfig:
sql_key_word_case =
'lower'
show_sql_params: bool =
True
show_sql_spent_time: bool =
False
show_sql_spent_time_min_ms: int =
0
naming_translate_type: int =
3
naming_to_lower_before: bool =
True
cache_max_size: int =
20000
cache_start_delete_rate: float =
0.6
cache_full_used_rate: float =
0.9
cache_full_clear_rate: float =
0.2
cache_timeout: int =
10000
cache_key_use_md5: bool =
True
cache_donot_put_cache_result_min_size: int =
200
cache_modify_syn: str =
''
def
get_db_config_dict(self):
put DB related class properties into a dict and return them
def
set_db_config_dict(self, config):
set database config via dict config.
Parameters
- config: dict config of database.
def
set_dbname(self, dbname):
set database name.
Parameters