Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBQuerier ¶
type DBQuerier interface { Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error) Query(context.Context, string, ...interface{}) (pgx.Rows, error) QueryRow(context.Context, string, ...interface{}) pgx.Row }
Interface that contains methods for querying. Applies to *pgx.Conn, *pgxpool.Pool, and pgx.Tx
type PGXPoolConn ¶
type PGXPoolConn interface { DBQuerier Begin(context.Context) (pgx.Tx, error) BeginTx(ctx context.Context, txOptions pgx.TxOptions) (pgx.Tx, error) Ping(context.Context) error Close() }
Interface that applies to *pgxpool.Pool. We need this to be able to mock the connection in tests.
Click to show internal directories.
Click to hide internal directories.