Versions in this module Expand all Collapse all v0 v0.1.1 Dec 3, 2023 v0.1.0 Dec 3, 2023 Changes in this version + var ErrRecordsNotFound = errors.New("no rows in result set") + type Client interface + Close func() + Exec func(ctx context.Context, sql string, args ...any) (pgconn.CommandTag, error) + Get func(ctx context.Context, dest interface{}, sql string, args ...interface{}) error + InTx func(ctx context.Context, isoLevel pgx.TxIsoLevel, ...) error + Ping func(ctx context.Context) error + Query func(ctx context.Context, sql string, args ...any) (pgx.Rows, error) + QueryRow func(ctx context.Context, sql string, args ...any) pgx.Row + Select func(ctx context.Context, dest interface{}, sql string, args ...interface{}) error + func New(ctx context.Context, config Config) (Client, error) + type Config struct + AllowUnknownColumns bool + EnableBeforeAcquirePing bool + Host string + Name string + Password string + PoolMaxConnIdle time.Duration + PoolMaxConnLife time.Duration + PoolMaxConnections string + PoolMinConnections string + Port string + QueryTimeout time.Duration + SSLMode string + User string + func (c *Config) Valid() error