# Functions
Config is similar to MustConfig, but safe.
DB is similar to MustDB, but safe.
No description provided by the author
No description provided by the author
获取实体对应的db对象.
根据key获取参数.
根据key获取参数集合.
根据配置文件初始化数据库.
加载数据库中所有的数据库连接到内存中.
dbname 要链接的数据库名称mainDsn 主链接(mysql链接),如果没有数据库,自动创建数据库.
No description provided by the author
No description provided by the author
List gets the list of database engines.
加载所有数据库,这里在主模块中调用.
将数据库记录对象DbConn集合转map,这里在主模块之外的模块中调用将数据库中默认数据库赋值给 dbService.Default.
MustConfig gets the configuration information for the specified database, or returns the default if no name is specified.
MustDB gets the specified database engine, or the default DB if no name is specified.
根据key重新加载模块变量,如果是空,加载全部参数.
# Structs
DBConfig is database connection config.
数据库链接配置表.
No description provided by the author
DBService is a database engine object.
模块表.
键值配置分类表.
键值配置分类表.
键值配置表.