Documentation
¶
Index ¶
- func Close(pool Pool) error
- func CloseRows(rows Rows) error
- func Count(pool Pool, query string, args ...any) (int64, error)
- func Exec(pool Pool, query string, args ...any) (int64, error)
- func Exists(pool Pool, query string, args ...any) (bool, error)
- func Ping(pool Pool) error
- func RawDB(pool Pool) *sql.DB
- func ScanAll(rows Rows, sample any) (any, error)
- func ScanOne(rows Rows, sample any) (any, error)
- func ScanRow(row Row, sample any) (any, error)
- func Transaction(pool Pool, fn func(Tx) error) error
- func TransactionWith(pool Pool, opts TxOptions, fn func(Tx) error) error
- func TxExec(tx Tx, query string, args ...any) (int64, error)
- type Pool
- type Row
- type Rows
- type Tx
- type TxOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.