package pgxprocess

Import Path
	go.pact.im/x/pgxprocess (on go.dev)

Dependency Relation
	imports 7 packages, and imported by 0 packages

Involved Source Files conn.go Package pgxprocess provides [process.Runner] wrapper for [pgx.Conn] and [pgxpool.Pool]. errors.go handle.go pool.go
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 (*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
Pool wraps [pgxpool.Pool] to delay pool setup to application runtime. Config *pgxpool.Config (*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
Package-Level Variables (only one, which is exported)
ErrNotConnected is an error that is returned if database handle is not connected.