Documentation ¶
Index ¶
- Constants
- func ApplyProperties(properties *Properties) postgresOpt
- func DSN(dsn string) postgresOpt
- func NewDB(opts ...postgresOpt) (*gorm.DB, func(), error)
- func Pool(maxOpen int, maxIdle int, maxLifetime int64, maxIdleTime int64) postgresOpt
- func PrintQueries(printQueries bool) postgresOpt
- type Error
- type PoolProperties
- type Properties
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func ApplyProperties ¶
func ApplyProperties(properties *Properties) postgresOpt
func PrintQueries ¶
func PrintQueries(printQueries bool) postgresOpt
Types ¶
type Error ¶
func TranslateError ¶
type PoolProperties ¶
type Properties ¶
type Properties struct { DSN string `json:"dsn" yaml:"dsn"` Pool *PoolProperties `json:"pool" yaml:"pool"` PrintQueries bool `json:"printQueries" yaml:"printQueries"` }
Click to show internal directories.
Click to hide internal directories.