Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSQLStrictMode ¶
func GetSQLStrictMode() string
GetSQLStrictMode return SQL strict mode for metastore Use strict mode to avoid unexpected silent processing of meta data
Types ¶
type DBConfig ¶
type DBConfig struct { ConnMaxIdleTime time.Duration `toml:"conn-max-idle-time" json:"conn-max-idle-time"` ConnMaxLifeTime time.Duration `toml:"conn-max-life-time" json:"conn-max-life-time"` MaxIdleConns int `toml:"max-idle-conns" json:"max-idle-conns"` MaxOpenConns int `toml:"max-open-conns" json:"max-open-conns"` }
DBConfig defines some configuration used in database connection refer to: https://pkg.go.dev/database/sql#SetConnMaxIdleTime
Click to show internal directories.
Click to hide internal directories.