package
5.7.2
Repository: https://github.com/jackc/pgx.git
Documentation: pkg.go.dev

# Functions

GetDefaultDriver returns the driver initialized in the init function and used when the pgx driver is registered.
GetPoolConnector creates a new driver.Connector from the given *pgxpool.Pool.
OpenDBFromPool creates a new *sql.DB from the given *pgxpool.Pool.
OptionAfterConnect provides a callback for after connect.
OptionBeforeConnect provides a callback for before connect.
OptionResetSession provides a callback that can be used to add custom logic prior to executing a query on the connection if the connection has been used before.
RandomizeHostOrderFunc is a BeforeConnect hook that randomizes the host order in the provided connConfig, so that a new host becomes primary each time.
RegisterConnConfig registers a ConnConfig and returns the connection string to use with Open.
UnregisterConnConfig removes the ConnConfig registration for connStr.

# Structs

# Type aliases

OptionOpenDB options for configuring the driver when opening a new db pool.