Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Dsn string // SlowThreshold 慢查询 SlowThreshold *durationpb.Duration LoggerEnable bool LoggerColorful bool // LoggerLevel 日志级别;值:DEBUG、INFO、WARN、ERROR、FATAL LoggerLevel string // ConnMaxActive 连接可复用的最大时间 ConnMaxActive uint32 // ConnMaxLifetime 可复用的最大时间 ConnMaxLifetime *durationpb.Duration // ConnMaxIdle 连接池中空闲连接的最大数量 ConnMaxIdle uint32 // ConnMaxIdleTime 设置连接空闲的最长时间 ConnMaxIdleTime *durationpb.Duration }
Config postgres conig
Click to show internal directories.
Click to hide internal directories.