Documentation ¶
Index ¶
Constants ¶
View Source
const ( DB_DSN = "datasource.dsn" DB_URL_KEY = "datasource.url" DB_USERNAME_KEY = "datasource.username" DB_PWD_KEY = "datasource.password" DB_CONN_MAX_LIFE_TIME = "datasource.connMaxLifetime" DB_MAX_IDLE_CONNS = "datasource.maxIdleConns" DB_MAX_OPEN_CONNS = "datasource.maxOpenConns" DefaultConnMaxLifetime = 30 * time.Minute DefaultMaxIdleConns = 10 DefaultMaxOpenConns = 50 )
Variables ¶
This section is empty.
Functions ¶
func CreateInsertSql ¶
func InitDataSource ¶
func InitDataSource(option Option)
Types ¶
Click to show internal directories.
Click to hide internal directories.