Documentation ¶
Index ¶
Constants ¶
View Source
const ( SilentLogLevel = "silent" ErrorLogLevel = "error" WarnLogLevel = "warn" InfoLogLevel = "info" )
View Source
const ( DefaultLogLevel = gormLogger.Warn DefaultMysqlDSN = "root:123456@tcp(localhost:3306)/demo?charset=utf8mb4&parseTime=True&loc=Local" DefaultCkDSN = "tcp://localhost:9000?database=demo&username=root&password=123456&read_timeout=10&write_timeout=20" DefaultPGDSN = "host=localhost user=root password=123456 dbname=demo port=9920 sslmode=disable TimeZone=Asia/Shanghai" DefaultMaxOpenConn = 1000 DefaultMaxIdleConn = 100 DefaultConnMaxLifetime = 3600 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
func ConnMaxLifetime ¶
func MaxIdleConn ¶
func MaxOpenConn ¶
Click to show internal directories.
Click to hide internal directories.