Versions in this module Expand all Collapse all v2 v2.1.0 May 2, 2026 Changes in this version + var ErrPoolNotConfigured = errors.New("database pool not configured") v2.0.1 Feb 2, 2026 Changes in this version + func AsPgError(err error) (*pgconn.PgError, bool) + func IsNoRows(err error) bool + func New(pool ports.DatabasePool) ports.TxManager + type DBer interface + Exec func(ctx context.Context, sql string, args ...any) (ports.DatabaseResult, error) + Query func(ctx context.Context, sql string, args ...any) (ports.DatabaseRows, error) + QueryRow func(ctx context.Context, sql string, args ...any) ports.DatabaseRow + func FromCtx(ctx context.Context, pool ports.DatabasePool) DBer + type Manager struct + Pool ports.DatabasePool + func (m *Manager) WithinTx(ctx context.Context, fn func(ctx context.Context) error) error