Versions in this module Expand all Collapse all v0 v0.0.1 Jun 13, 2024 Changes in this version + type DBHandler struct + BeginTxFunc func(ctx context.Context, opts *sql.TxOptions) (*database.Tx, error) + ExecContextFunc func(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + QueryContextFunc func(ctx context.Context, query string, args ...interface{}) (*database.Rows, error) + QueryRowContextFunc func(ctx context.Context, query string, args ...interface{}) *database.Row + func (m *DBHandler) BeginTx(ctx context.Context, opts *sql.TxOptions) (*database.Tx, error) + func (m *DBHandler) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + func (m *DBHandler) QueryContext(ctx context.Context, query string, args ...interface{}) (*database.Rows, error) + func (m *DBHandler) QueryRowContext(ctx context.Context, query string, args ...interface{}) *database.Row + type RowHandler struct + ErrFunc func() error + NextFunc func() bool + ScanFunc func(dest ...interface{}) error + func (m *RowHandler) Err() error + func (m *RowHandler) Next() bool + func (m *RowHandler) Scan(dest ...interface{}) error + type RowsHandler struct + CloseFunc func() error + ErrFunc func() error + NextFunc func() bool + ScanFunc func(dest ...interface{}) error + func (m *RowsHandler) Close() error + func (m *RowsHandler) Err() error + func (m *RowsHandler) Next() bool + func (m *RowsHandler) Scan(dest ...interface{}) error + type Transactor struct + BeginTxFunc func(ctx context.Context, opts *sql.TxOptions) (*database.Tx, error) + func (m *Transactor) BeginTx(ctx context.Context, opts *sql.TxOptions) (*database.Tx, error) + type TxHandler struct + CommitFunc func() error + RollbackFunc func() error + func (m *TxHandler) Commit() error + func (m *TxHandler) Rollback() error