Versions in this module Expand all Collapse all v0 v0.1.1 Dec 15, 2025 Changes in this version + type DBHelper struct + func New(opts ...Option) *DBHelper + func (d *DBHelper) Close() + func (d *DBHelper) Connect(connStr string, timeout time.Duration) error + func (d *DBHelper) Exec(ctx context.Context, query string, args ...any) (int64, error) + func (d *DBHelper) Get(ctx context.Context, dest any, query string, args ...any) error + func (d *DBHelper) Ping(ctx context.Context) error + func (d *DBHelper) Querier(ctx context.Context) Querier + func (d *DBHelper) Select(ctx context.Context, dest any, query string, args ...any) error + func (d *DBHelper) WithinTransaction(ctx context.Context, fn func(ctx context.Context) error, opt ...pgx.TxOptions) error + type Option func(*DBHelper) + func WithScanAPI(scanAPI *pgxscan.API) Option + type Querier interface + CopyFrom func(ctx context.Context, tableName pgx.Identifier, columnNames []string, ...) (int64, error) + Exec func(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error) + Query func(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error) + QueryRow func(ctx context.Context, sql string, args ...interface{}) pgx.Row + SendBatch func(ctx context.Context, b *pgx.Batch) pgx.BatchResults v0.1.0 Dec 15, 2025