Versions in this module Expand all Collapse all v1 v1.0.4 May 26, 2021 v1.0.3 May 19, 2021 v1.0.2 May 14, 2021 Changes in this version + const ErrInvalidValue + const ErrNotNullViolation + const ErrOther + const ErrRecordNotFound + const ErrUniqueViolation + func ApplyProperties(properties *Properties) postgresOpt + func DSN(dsn string) postgresOpt + func NewDB(opts ...postgresOpt) (*gorm.DB, error) + func Pool(maxOpen int, maxIdle int, maxLifetime int64, maxIdleTime int64) postgresOpt + func PrintQueries(printQueries bool) postgresOpt + type Error struct + Code int + Constraint string + Err error + func TranslateError(err error) *Error + func (err *Error) Error() string + type PoolProperties struct + MaxIdle int + MaxIdleTime int64 + MaxLifetime int64 + MaxOpen int + type Properties struct + DSN string + Pool *PoolProperties + PrintQueries bool v1.0.1 May 8, 2021