Documentation ¶
Index ¶
- func WithTx(ctx context.Context, db *pgxpool.Tx, fn WithTxFunc) error
- type Database
- type RowsAdapter
- func (ra RowsAdapter) Close() error
- func (ra RowsAdapter) Columns() ([]string, error)
- func (ra RowsAdapter) Err() error
- func (ra RowsAdapter) Next() bool
- func (ra RowsAdapter) NextResultSet() bool
- func (ra RowsAdapter) Scan(dest ...any) error
- func (ra RowsAdapter) Types() ([]string, error)
- func (ra RowsAdapter) Values() ([]any, error)
- type WithTxFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
type RowsAdapter ¶
type RowsAdapter struct {
// contains filtered or unexported fields
}
RowsAdapter makes pgx.Rows compliant with the scanner.Rows interface. See dbsql.Rows for details.
func NewRowsAdapter ¶
func NewRowsAdapter(rows pgx.Rows) *RowsAdapter
NewRowsAdapter returns a new rowsAdapter instance.
func (RowsAdapter) Close ¶
func (ra RowsAdapter) Close() error
Close implements the dbscan.Rows.Close method.
func (RowsAdapter) Columns ¶
func (ra RowsAdapter) Columns() ([]string, error)
Columns implements the dbscan.Rows.Columns method.
func (RowsAdapter) Err ¶
func (ra RowsAdapter) Err() error
func (RowsAdapter) Next ¶
func (ra RowsAdapter) Next() bool
func (RowsAdapter) NextResultSet ¶
func (ra RowsAdapter) NextResultSet() bool
NextResultSet is currently always returning false.
func (RowsAdapter) Scan ¶
func (ra RowsAdapter) Scan(dest ...any) error
func (RowsAdapter) Types ¶
func (ra RowsAdapter) Types() ([]string, error)
func (RowsAdapter) Values ¶
func (ra RowsAdapter) Values() ([]any, error)
type WithTxFunc ¶
WithTxFunc represents a function that will be executed within transaction.
Click to show internal directories.
Click to hide internal directories.