Versions in this module Expand all Collapse all v0 v0.1.0 May 18, 2022 Changes in this version + type Conn struct + func (c *Conn) BeginTx(ctx context.Context, opts *TxOptions) (*Tx, error) + func (c *Conn) Commit() error + func (c *Conn) Conn() *sql.Conn + func (c *Conn) ExecContext(ctx context.Context, query string, args ...interface{}) (Result, error) + func (c *Conn) PingContext(ctx context.Context) error + func (c *Conn) PrepareContext(ctx context.Context, query string) (*Stmt, error) + func (c *Conn) QueryContext(ctx context.Context, query string, args ...interface{}) (*Rows, error) + func (c *Conn) QueryRowContext(ctx context.Context, query string, args ...interface{}) *Row + func (c *Conn) Rollback() error + type DB struct + func Wrap(db *sql.DB) *DB + func (db *DB) BeginTx(ctx context.Context, opts *TxOptions) (*Tx, error) + func (db *DB) Commit() error + func (db *DB) DB() *sql.DB + func (db *DB) ExecContext(ctx context.Context, query string, args ...interface{}) (Result, error) + func (db *DB) PingContext(ctx context.Context) error + func (db *DB) PrepareContext(ctx context.Context, query string) (*Stmt, error) + func (db *DB) QueryContext(ctx context.Context, query string, args ...interface{}) (*Rows, error) + func (db *DB) QueryRowContext(ctx context.Context, query string, args ...interface{}) *Row + func (db *DB) Rollback() error + type Querier interface + Commit func() error + ExecContext func(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + PingContext func(ctx context.Context) error + PrepareContext func(ctx context.Context, query string) (*Stmt, error) + QueryContext func(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) + QueryRowContext func(ctx context.Context, query string, args ...interface{}) *sql.Row + Rollback func() error + type Result = sql.Result + type Row = sql.Row + type Rows = sql.Rows + type Stmt = sql.Stmt + type Tx struct + func (tx *Tx) BeginTx(ctx context.Context, opts *TxOptions) (*Tx, error) + func (tx *Tx) Commit() error + func (tx *Tx) ExecContext(ctx context.Context, query string, args ...interface{}) (Result, error) + func (tx *Tx) PingContext(ctx context.Context) error + func (tx *Tx) PrepareContext(ctx context.Context, query string) (*Stmt, error) + func (tx *Tx) QueryContext(ctx context.Context, query string, args ...interface{}) (*Rows, error) + func (tx *Tx) QueryRowContext(ctx context.Context, query string, args ...interface{}) *Row + func (tx *Tx) Rollback() error + func (tx *Tx) Tx() *sql.Tx + type TxOptions = sql.TxOptions