Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBTX ¶
type DBTX interface {
Exec(query string, args ...any) (sql.Result, error)
Query(query string, args ...any) (*sql.Rows, error)
QueryRow(query string, args ...any) *sql.Row
}
DBTX is satisfied by both *sql.DB and *sql.Tx, enabling the same query functions to be used in and out of transactions.
Click to show internal directories.
Click to hide internal directories.