package pgxprocess
Import Path
go.pact.im/x/pgxprocess (on go.dev)
Dependency Relation
imports 7 packages, and imported by 0 packages
Package-Level Type Names (total 7, in which 2 are exported)
/* sort exporteds by: | */
Conn wraps [pgx.Conn] to delay connection setup to application runtime.
Config *pgx.ConnConfig
handle handle[pgx.Conn, *pgx.Conn]
handle.pointer atomic.Pointer[pgx.Conn]
(*Conn) Begin(ctx context.Context) (pgx.Tx, error)
(*Conn) BeginTx(ctx context.Context, txOptions pgx.TxOptions) (pgx.Tx, error)
(*Conn) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error)
(*Conn) Exec(ctx context.Context, sql string, args ...any) (pgconn.CommandTag, error)
Handle returns the underlying database handle.
(*Conn) Ping(ctx context.Context) error
(*Conn) Query(ctx context.Context, sql string, args ...any) (pgx.Rows, error)
(*Conn) QueryRow(ctx context.Context, sql string, args ...any) pgx.Row
Run implements the [process.Runner] interface.
(*Conn) SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults
*Conn : go.pact.im/x/process.Runner
*Conn : database/sql/driver.Pinger
*Conn : database
Pool wraps [pgxpool.Pool] to delay pool setup to application runtime.
Config *pgxpool.Config
handle handle[pgxpool.Pool, *pgxpool.Pool]
handle.pointer atomic.Pointer[pgxpool.Pool]
(*Pool) Begin(ctx context.Context) (pgx.Tx, error)
(*Pool) BeginTx(ctx context.Context, txOptions pgx.TxOptions) (pgx.Tx, error)
(*Pool) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error)
(*Pool) Exec(ctx context.Context, sql string, args ...any) (pgconn.CommandTag, error)
Handle returns the underlying database handle.
(*Pool) Ping(ctx context.Context) error
(*Pool) Query(ctx context.Context, sql string, args ...any) (pgx.Rows, error)
(*Pool) QueryRow(ctx context.Context, sql string, args ...any) pgx.Row
Run implements the [process.Runner] interface.
(*Pool) SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults
*Pool : go.pact.im/x/process.Runner
*Pool : database/sql/driver.Pinger
*Pool : database
database is a common interface for [pgx.Conn] and [pgxpool.Pool].
( database) Begin(context.Context) (pgx.Tx, error)
( database) BeginTx(context.Context, pgx.TxOptions) (pgx.Tx, error)
( database) CopyFrom(context.Context, pgx.Identifier, []string, pgx.CopyFromSource) (int64, error)
( database) Exec(context.Context, string, ...any) (pgconn.CommandTag, error)
( database) Ping(context.Context) error
( database) Query(context.Context, string, ...any) (pgx.Rows, error)
( database) QueryRow(context.Context, string, ...any) pgx.Row
( database) SendBatch(context.Context, *pgx.Batch) pgx.BatchResults
*Conn
*Pool
*github.com/jackc/pgx/v5.Conn
*github.com/jackc/pgx/v5/pgxpool.Conn
*github.com/jackc/pgx/v5/pgxpool.Pool
*handle[...]
database : database/sql/driver.Pinger
Type Parameters:
T: any
P: interface{*T; database}
pointer atomic.Pointer[T]
(*handle[T, P]) Begin(ctx context.Context) (pgx.Tx, error)
(*handle[T, P]) BeginTx(ctx context.Context, txOptions pgx.TxOptions) (pgx.Tx, error)
(*handle[T, P]) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error)
(*handle[T, P]) Exec(ctx context.Context, sql string, args ...any) (pgconn.CommandTag, error)
Handle returns the underlying database handle.
(*handle[T, P]) Ping(ctx context.Context) error
(*handle[T, P]) Query(ctx context.Context, sql string, args ...any) (pgx.Rows, error)
(*handle[T, P]) QueryRow(ctx context.Context, sql string, args ...any) pgx.Row
(*handle[T, P]) SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults
*handle : database/sql/driver.Pinger
*handle : database
Package-Level Variables (only one, which is exported)