Versions in this module Expand all Collapse all v0 v0.0.3 Apr 18, 2024 v0.0.2 Apr 17, 2024 Changes in this version + func Recover(ctx context.Context, fn func(err error)) + func TransactionWrapper(ctx context.Context, conn Client, ...) error + type Client interface + Begin func(ctx context.Context) (pgx.Tx, error) + Exec func(ctx context.Context, sq Squirrel) (pgconn.CommandTag, error) + Get func(ctx context.Context, dest interface{}, serializer Squirrel) error + Select func(ctx context.Context, dest interface{}, serializer Squirrel) error + func NewClient(ctx context.Context, cfg Config) (Client, error) + type Config struct + ConnectTimeout time.Duration + Database string + HealCheckDuration time.Duration + Host string + MaxConn int64 + MinConn int64 + Password string + Port uint16 + TLSConfig *tls.Config + User string + func (db *Config) GetDSN() string + type Squirrel interface + ToSql func() (sql string, args []interface{}, err error)