Documentation
¶
Index ¶
- func NewDB(pool *pgxpool.Pool) db.Conn
- type CopyFromTx
- type DB
- func (p *DB) Begin(ctx context.Context) (db.Tx, error)
- func (p *DB) Exec(ctx context.Context, sql string, args ...any) (db.Result, error)
- func (p *DB) Ping(ctx context.Context) error
- func (p *DB) Query(ctx context.Context, sql string, args ...any) (db.Rows, error)
- func (p *DB) QueryRow(ctx context.Context, sql string, args ...any) db.Row
- type Row
- type Rows
- type Tx
- func (t *Tx) Commit(ctx context.Context) error
- func (t *Tx) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, ...) (int64, error)
- func (t *Tx) Exec(ctx context.Context, sql string, args ...any) (db.Result, error)
- func (t *Tx) Query(ctx context.Context, sql string, args ...any) (db.Rows, error)
- func (t *Tx) QueryRow(ctx context.Context, sql string, args ...any) db.Row
- func (t *Tx) Rollback(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CopyFromTx ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.