Documentation
¶
Index ¶
Constants ¶
View Source
const ( Mysql = "mysql" Postgres = "postgres" Sqlite = "sqlite3" Sqlserver = "sqlserver" )
Variables ¶
This section is empty.
Functions ¶
func PostgresDsn ¶
func SQLServerDsn ¶
Types ¶
type Option ¶
type Option struct {
Driver string `mapstructure:"driver"`
Address string `mapstructure:"address"`
User string `mapstructure:"user"`
Password string `mapstructure:"password"`
Database string `mapstructure:"database"`
Params string `mapstructure:"param"`
MaxIdleConnections int `mapstructure:"maxIdleConnections"`
MaxOpenConnections int `mapstructure:"maxOpenConnections"`
MaxLifeTime time.Duration `mapstructure:"maxLifeTime"`
MaxIdleTime time.Duration `mapstructure:"maxIdleTime"`
}
Option is database connection option
Click to show internal directories.
Click to hide internal directories.