type github.com/jackc/pgx/v5.Conn
107 uses
github.com/jackc/pgx/v5 (current package)
batch.go#L142: conn *Conn
batch.go#L312: conn *Conn
batch.go#L521: conn *Conn
batch.go#L604: func invalidateCachesOnBatchResultsError(conn *Conn, b *Batch, err error) {
conn.go#L68: type Conn struct {
conn.go#L136: func Connect(ctx context.Context, connString string) (*Conn, error) {
conn.go#L146: func ConnectWithOptions(ctx context.Context, connString string, options ParseConfigOptions) (*Conn, error) {
conn.go#L156: func ConnectConfig(ctx context.Context, connConfig *ConnConfig) (*Conn, error) {
conn.go#L244: func connect(ctx context.Context, config *ConnConfig) (c *Conn, err error) {
conn.go#L258: c = &Conn{
conn.go#L302: func (c *Conn) Close(ctx context.Context) error {
conn.go#L320: func (c *Conn) Prepare(ctx context.Context, name, sql string) (sd *pgconn.StatementDescription, err error) {
conn.go#L381: func (c *Conn) Deallocate(ctx context.Context, name string) error {
conn.go#L403: func (c *Conn) DeallocateAll(ctx context.Context) error {
conn.go#L415: func (c *Conn) bufferNotifications(_ *pgconn.PgConn, n *pgconn.Notification) {
conn.go#L421: func (c *Conn) WaitForNotification(ctx context.Context) (*pgconn.Notification, error) {
conn.go#L440: func (c *Conn) IsClosed() bool {
conn.go#L444: func (c *Conn) die() {
conn.go#L459: func (c *Conn) Ping(ctx context.Context) error {
conn.go#L468: func (c *Conn) PgConn() *pgconn.PgConn { return c.pgConn }
conn.go#L471: func (c *Conn) TypeMap() *pgtype.Map { return c.typeMap }
conn.go#L474: func (c *Conn) Config() *ConnConfig { return c.config.Copy() }
conn.go#L478: func (c *Conn) Exec(ctx context.Context, sql string, arguments ...any) (pgconn.CommandTag, error) {
conn.go#L499: func (c *Conn) exec(ctx context.Context, sql string, arguments ...any) (commandTag pgconn.CommandTag, err error) {
conn.go#L589: func (c *Conn) execSimpleProtocol(ctx context.Context, sql string, arguments []any) (commandTag pgconn.CommandTag, err error) {
conn.go#L605: func (c *Conn) execParams(ctx context.Context, sd *pgconn.StatementDescription, arguments []any) (pgconn.CommandTag, error) {
conn.go#L616: func (c *Conn) execPrepared(ctx context.Context, sd *pgconn.StatementDescription, arguments []any) (pgconn.CommandTag, error) {
conn.go#L627: func (c *Conn) execSQLParams(ctx context.Context, sql string, args []any) (pgconn.CommandTag, error) {
conn.go#L638: func (c *Conn) getRows(ctx context.Context, sql string, args []any) *baseRows {
conn.go#L736: RewriteQuery(ctx context.Context, conn *Conn, sql string, args []any) (newSQL string, newArgs []any, err error)
conn.go#L760: func (c *Conn) Query(ctx context.Context, sql string, args ...any) (Rows, error) {
conn.go#L901: func (c *Conn) getStatementDescription(
conn.go#L940: func (c *Conn) QueryRow(ctx context.Context, sql string, args ...any) Row {
conn.go#L951: func (c *Conn) SendBatch(ctx context.Context, b *Batch) BatchResults {
conn.go#L963: func (c *Conn) sendBatch(ctx context.Context, b *Batch) (br BatchResults) {
conn.go#L1038: func (c *Conn) sendBatchQueryExecModeSimpleProtocol(ctx context.Context, b *Batch) *batchResults {
conn.go#L1062: func (c *Conn) sendBatchQueryExecModeExec(ctx context.Context, b *Batch) *batchResults {
conn.go#L1096: func (c *Conn) sendBatchQueryExecModeCacheStatement(ctx context.Context, b *Batch) (pbr *pipelineBatchResults) {
conn.go#L1128: func (c *Conn) sendBatchQueryExecModeCacheDescribe(ctx context.Context, b *Batch) (pbr *pipelineBatchResults) {
conn.go#L1159: func (c *Conn) sendBatchQueryExecModeDescribeExec(ctx context.Context, b *Batch) (pbr *pipelineBatchResults) {
conn.go#L1181: func (c *Conn) sendBatchExtendedWithDescription(ctx context.Context, b *Batch, distinctNewQueries []*pgconn.StatementDescription, sdCache stmtcache.Cache) (pbr *pipelineBatchResults) {
conn.go#L1283: func (c *Conn) sanitizeForSimpleQuery(sql string, args ...any) (string, error) {
conn.go#L1313: func (c *Conn) LoadType(ctx context.Context, typeName string) (*pgtype.Type, error) {
conn.go#L1387: func (c *Conn) getArrayElementOIDAndDelimiter(ctx context.Context, oid uint32) (uint32, byte, error) {
conn.go#L1399: func (c *Conn) getRangeElementOID(ctx context.Context, oid uint32) (uint32, error) {
conn.go#L1410: func (c *Conn) getMultiRangeElementOID(ctx context.Context, oid uint32) (uint32, error) {
conn.go#L1421: func (c *Conn) getCompositeFields(ctx context.Context, oid uint32) ([]pgtype.CompositeCodecField, error) {
conn.go#L1455: func (c *Conn) deallocateInvalidatedCachedStatements(ctx context.Context) error {
copy_from.go#L110: conn *Conn
copy_from.go#L265: func (c *Conn) CopyFrom(ctx context.Context, tableName Identifier, columnNames []string, rowSrc CopyFromSource) (int64, error) {
derived_types.go#L179: func (c *Conn) LoadTypes(ctx context.Context, typeNames []string) ([]*pgtype.Type, error) {
derived_types.go#L265: func serverVersion(c *Conn) (int64, error) {
named_args.go#L26: func (na NamedArgs) RewriteQuery(ctx context.Context, conn *Conn, sql string, args []any) (newSQL string, newArgs []any, err error) {
named_args.go#L35: func (sna StrictNamedArgs) RewriteQuery(ctx context.Context, conn *Conn, sql string, args []any) (newSQL string, newArgs []any, err error) {
named_args.go#L43: func (r errorQueryRewriter) RewriteQuery(ctx context.Context, conn *Conn, sql string, args []any) (newSQL string, newArgs []any, err error) {
rows.go#L73: Conn() *Conn
rows.go#L157: conn *Conn
rows.go#L365: func (rows *baseRows) Conn() *Conn {
tracer.go#L14: TraceQueryStart(ctx context.Context, conn *Conn, data TraceQueryStartData) context.Context
tracer.go#L16: TraceQueryEnd(ctx context.Context, conn *Conn, data TraceQueryEndData)
tracer.go#L33: TraceBatchStart(ctx context.Context, conn *Conn, data TraceBatchStartData) context.Context
tracer.go#L35: TraceBatchQuery(ctx context.Context, conn *Conn, data TraceBatchQueryData)
tracer.go#L36: TraceBatchEnd(ctx context.Context, conn *Conn, data TraceBatchEndData)
tracer.go#L68: TraceCopyFromStart(ctx context.Context, conn *Conn, data TraceCopyFromStartData) context.Context
tracer.go#L70: TraceCopyFromEnd(ctx context.Context, conn *Conn, data TraceCopyFromEndData)
tracer.go#L87: TracePrepareStart(ctx context.Context, conn *Conn, data TracePrepareStartData) context.Context
tracer.go#L89: TracePrepareEnd(ctx context.Context, conn *Conn, data TracePrepareEndData)
tracer.go#L116: Conn *Conn
tx.go#L121: func (c *Conn) Begin(ctx context.Context) (Tx, error) {
tx.go#L127: func (c *Conn) BeginTx(ctx context.Context, txOptions TxOptions) (Tx, error) {
tx.go#L188: Conn() *Conn
tx.go#L196: conn *Conn
tx.go#L324: func (tx *dbTx) Conn() *Conn {
tx.go#L425: func (sp *dbSimulatedNestedTx) Conn() *Conn {
github.com/jackc/pgx/v5/pgxpool
conn.go#L71: func (c *Conn) Hijack() *pgx.Conn {
conn.go#L119: func (c *Conn) Conn() *pgx.Conn {
pool.go#L29: conn *pgx.Conn
pool.go#L87: afterConnect func(context.Context, *pgx.Conn) error
pool.go#L88: prepareConn func(context.Context, *pgx.Conn) (bool, error)
pool.go#L89: afterRelease func(*pgx.Conn) bool
pool.go#L90: beforeClose func(*pgx.Conn)
pool.go#L115: Conn *pgx.Conn
pool.go#L129: AfterConnect func(context.Context, *pgx.Conn) error
pool.go#L137: BeforeAcquire func(context.Context, *pgx.Conn) bool
pool.go#L149: PrepareConn func(context.Context, *pgx.Conn) (bool, error)
pool.go#L153: AfterRelease func(*pgx.Conn) bool
pool.go#L156: BeforeClose func(*pgx.Conn)
pool.go#L240: prepareConn = func(ctx context.Context, conn *pgx.Conn) (bool, error) {
pool.go#L629: var conn *pgx.Conn
rows.go#L21: func (e errRows) Conn() *pgx.Conn { return nil }
rows.go#L91: func (rows *poolRows) Conn() *pgx.Conn {
tracer.go#L21: Conn *pgx.Conn
tracer.go#L32: Conn *pgx.Conn
tx.go#L81: func (tx *Tx) Conn() *pgx.Conn {
github.com/jackc/pgx/v5/tracelog
tracelog.go#L174: func (tl *TraceLog) TraceQueryStart(ctx context.Context, conn *pgx.Conn, data pgx.TraceQueryStartData) context.Context {
tracelog.go#L182: func (tl *TraceLog) TraceQueryEnd(ctx context.Context, conn *pgx.Conn, data pgx.TraceQueryEndData) {
tracelog.go#L205: func (tl *TraceLog) TraceBatchStart(ctx context.Context, conn *pgx.Conn, data pgx.TraceBatchStartData) context.Context {
tracelog.go#L211: func (tl *TraceLog) TraceBatchQuery(ctx context.Context, conn *pgx.Conn, data pgx.TraceBatchQueryData) {
tracelog.go#L233: func (tl *TraceLog) TraceBatchEnd(ctx context.Context, conn *pgx.Conn, data pgx.TraceBatchEndData) {
tracelog.go#L258: func (tl *TraceLog) TraceCopyFromStart(ctx context.Context, conn *pgx.Conn, data pgx.TraceCopyFromStartData) context.Context {
tracelog.go#L266: func (tl *TraceLog) TraceCopyFromEnd(ctx context.Context, conn *pgx.Conn, data pgx.TraceCopyFromEndData) {
tracelog.go#L335: func (tl *TraceLog) TracePrepareStart(ctx context.Context, _ *pgx.Conn, data pgx.TracePrepareStartData) context.Context {
tracelog.go#L343: func (tl *TraceLog) TracePrepareEnd(ctx context.Context, conn *pgx.Conn, data pgx.TracePrepareEndData) {
tracelog.go#L404: func (tl *TraceLog) log(ctx context.Context, conn *pgx.Conn, lvl LogLevel, msg string, data map[string]any) {
go.pact.im/x/pgxprocess
conn.go#L17: handle[pgx.Conn, *pgx.Conn]
errors.go#L53: func (errRows) Conn() *pgx.Conn {