Versions in this module Expand all Collapse all v4 v4.11.2 Apr 16, 2021 v4.11.1 Apr 16, 2021 Changes in this version + var ErrNotPgx = errors.New("not pgx *sql.DB") + func AcquireConn(db *sql.DB) (*pgx.Conn, error) + func GetDefaultDriver() driver.Driver + func OpenDB(config pgx.ConnConfig, opts ...OptionOpenDB) *sql.DB + func RegisterConnConfig(c *pgx.ConnConfig) string + func ReleaseConn(db *sql.DB, conn *pgx.Conn) error + func UnregisterConnConfig(connStr string) + type Conn struct + func (c *Conn) Begin() (driver.Tx, error) + func (c *Conn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error) + func (c *Conn) CheckNamedValue(*driver.NamedValue) error + func (c *Conn) Close() error + func (c *Conn) Conn() *pgx.Conn + func (c *Conn) ExecContext(ctx context.Context, query string, argsV []driver.NamedValue) (driver.Result, error) + func (c *Conn) Ping(ctx context.Context) error + func (c *Conn) Prepare(query string) (driver.Stmt, error) + func (c *Conn) PrepareContext(ctx context.Context, query string) (driver.Stmt, error) + func (c *Conn) QueryContext(ctx context.Context, query string, argsV []driver.NamedValue) (driver.Rows, error) + func (c *Conn) ResetSession(ctx context.Context) error + type Driver struct + func (d *Driver) Open(name string) (driver.Conn, error) + func (d *Driver) OpenConnector(name string) (driver.Connector, error) + type OptionOpenDB func(*connector) + func OptionAfterConnect(ac func(context.Context, *pgx.Conn) error) OptionOpenDB + type Rows struct + func (r *Rows) Close() error + func (r *Rows) ColumnTypeDatabaseTypeName(index int) string + func (r *Rows) ColumnTypeLength(index int) (int64, bool) + func (r *Rows) ColumnTypePrecisionScale(index int) (precision, scale int64, ok bool) + func (r *Rows) ColumnTypeScanType(index int) reflect.Type + func (r *Rows) Columns() []string + func (r *Rows) Next(dest []driver.Value) error + type Stmt struct + func (s *Stmt) Close() error + func (s *Stmt) Exec(argsV []driver.Value) (driver.Result, error) + func (s *Stmt) ExecContext(ctx context.Context, argsV []driver.NamedValue) (driver.Result, error) + func (s *Stmt) NumInput() int + func (s *Stmt) Query(argsV []driver.Value) (driver.Rows, error) + func (s *Stmt) QueryContext(ctx context.Context, argsV []driver.NamedValue) (driver.Rows, error) Other modules containing this package github.com/matthewpi/pgx