package
Version:
v0.0.1-rc13
Opens a new window with list of versions in this module.
Published: Sep 14, 2022
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
database
build tags with follow:
nomysql: disable mysql < default enable mysql >
nopostgres: disable postgres < default enable postgres >
sqlite3: enable sqlite3 < default disable sqlite3 >
Documentation
¶
SetDBLogger set db logger
type Config struct {
Dialect string `yaml:"dialect" json:"dialect"`
Dsn string `yaml:"dsn" json:"dsn"`
MaxIdleConn int `yaml:"max_idle_conn" json:"max_idle_conn"`
MaxOpenConn int `yaml:"max_open_conn" json:"max_open_conn"`
}
Config 数据库配置
Source Files
¶
Click to show internal directories.
Click to hide internal directories.