Documentation
¶
Index ¶
- func Exec(ctx context.Context, db executor, sql string, args ...any) (pgconn.CommandTag, error)
- func Query(ctx context.Context, db querier, sql string, args ...any) (pgx.Rows, error)
- func QueryRow(ctx context.Context, db queryRower, sql string, args ...any) pgx.Row
- func TxFromContext(ctx context.Context) pgx.Tx
- func WithTx(ctx context.Context, tx pgx.Tx) context.Context
- type Pool
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TxFromContext ¶ added in v1.0.7
TxFromContext return pgx.Tx from context or nil if not found.
Types ¶
type Pool ¶ added in v1.0.1
type Pool struct {
// contains filtered or unexported fields
}
Pool wraps pgxpool.Pool query methods with pgxatomic corresponding functions which injects pgx.Tx into context.
Click to show internal directories.
Click to hide internal directories.
