rebar3 服务器
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
%%%-------------------------------------------------------------------
|
||||
%%% @copyright (C) 2021, <COMPANY>
|
||||
%%% @doc
|
||||
%%%
|
||||
%%% @end
|
||||
%%% Created : 26. 5月 2021 18:54
|
||||
%%%-------------------------------------------------------------------
|
||||
-include("base.hrl").
|
||||
|
||||
-ifndef(__MS_TBLLOG_HRL__).
|
||||
-define(__MS_TBLLOG_HRL__, true).
|
||||
|
||||
-define(MS_TBLLOG, ms_tbllog).
|
||||
|
||||
%%% 打印函数
|
||||
|
||||
|
||||
%% db_pool name
|
||||
-define(DB_POOL, ms_config:get(ms_tbllog, db_update_pool_name, default)).
|
||||
%% db驱动程序
|
||||
-define(DB_DRIVER, ms_config:get(ms_tbllog, db_driver, 'mysql-otp')). %% 'emysql' | 'mysql-otp'
|
||||
%% 缓存数据同步到数据库时间
|
||||
-define(SYNC_TIME, ms_config:get(ms_tbllog, db_save_time, 120000)).
|
||||
%% 缓存数据首次同步数据随机时间最小值
|
||||
-define(SYNC_START_TIME, ms_config:get(ms_tbllog, db_save_start_time, 60000)).
|
||||
%% 一次同步的数据量上限
|
||||
-define(SYNC_COUNT, ms_config:get(ms_tbllog, db_save_count, 100)).
|
||||
%% 同步时被忽略的所有字符,防止sql注入式攻击
|
||||
-define(LOG_IGNORE_CHARS, [$',$",$;,$\\]).
|
||||
|
||||
-endif.
|
||||
Reference in New Issue
Block a user