Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Executor ¶
type Executor interface { TxBeginner dbsqlc.DBTX }
Executor is an interface for a type that can begin a transaction and also perform all the operations needed to be used in conjunction with sqlc. Implemented by all of pgx's `pgxpool.Pool`, `pgx.Conn`, and `pgx.Tx` (transactions can start subtransactions).
type TxBeginner ¶
TxBeginner is an interface to a type that can begin a transaction, like a pgx connection pool, connection, or transaction (the latter would begin a subtransaction).
Click to show internal directories.
Click to hide internal directories.