Versions in this module Expand all Collapse all v0 v0.1.1 Aug 26, 2022 Changes in this version + type Core interface + Exec func(ctx context.Context, query string, args ...interface{}) (rst sql.Result, err error) + Query func(ctx context.Context, query string, args ...interface{}) (rows *Rows, err error) + QueryRow func(ctx context.Context, query string, args ...interface{}) (row *Row, err error) + type DB struct + func New(db *sql.DB) *DB + func (d *DB) Exec(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + func (d *DB) Query(ctx context.Context, query string, args ...interface{}) (*Rows, error) + func (d *DB) QueryRow(ctx context.Context, query string, args ...interface{}) (*Row, error) + func (d *DB) Tx(ctx context.Context, f func(context.Context) error) error + type DBItf interface + Tx func(ctx context.Context, f func(context.Context) error) error + type Row struct + func (r *Row) Scan(desc ...interface{}) error + type Rows struct + func (r *Rows) Scan(desc ...interface{}) error + type Tx struct + func (t *Tx) Commit() error + func (t *Tx) Exec(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + func (t *Tx) Query(ctx context.Context, query string, args ...interface{}) (*Rows, error) + func (t *Tx) QueryRow(ctx context.Context, query string, args ...interface{}) (*Row, error) + func (t *Tx) Rollback() error + func (t *Tx) Tx(f func() error) (err error) + type TxItf interface + Commit func() error + Rollback func() error + Tx func(f func() error) error