Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultDriver = "postgres"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Name string
DSN string
Driver string
DB *stdsql.DB
Hooks []capsql.QueryHook
SlowQueryThreshold time.Duration
SlowQueryHook bridgesql.SlowQueryHook
MaxOpenConns int
MaxIdleConns int
ConnMaxLifetime time.Duration
ConnMaxIdleTime time.Duration
PingTimeout time.Duration
HealthQuery string
}
Click to show internal directories.
Click to hide internal directories.