MCPcopy
hub / github.com/jackc/pgx / PgConn

Method PgConn

conn.go:462–462  ·  view source on GitHub ↗

PgConn returns the underlying *pgconn.PgConn. This is an escape hatch method that allows lower level access to the PostgreSQL connection than pgx exposes. It is strongly recommended that the connection be idle (no in-progress queries) before the underlying *pgconn.PgConn is used and the connection

()

Source from the content-addressed store, hash-verified

460// It is strongly recommended that the connection be idle (no in-progress queries) before the underlying *pgconn.PgConn
461// is used and the connection must be returned to the same state before any *pgx.Conn methods are again used.
462func (c *Conn) PgConn() *pgconn.PgConn { return c.pgConn }
463
464// TypeMap returns the connection info used for this connection.
465func (c *Conn) TypeMap() *pgtype.Map { return c.typeMap }

Calls

no outgoing calls