Versions in this module Expand all Collapse all v2 v2.2.3 Apr 15, 2025 v2.2.2 Apr 15, 2025 Changes in this version + type DB struct + func New(db *sql.DB) *DB + func (d *DB) Begin() (*Tx, error) + func (d *DB) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error) + func (d *DB) CacheSize() int + func (d *DB) CachingEnabled() bool + func (d *DB) ClearCache() error + func (d *DB) Close() error + func (d *DB) Exec(query string, args ...interface{}) (sql.Result, error) + func (d *DB) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + func (d *DB) Prepare(query string) (*sql.Stmt, error) + func (d *DB) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) + func (d *DB) Query(query string, args ...interface{}) (*sql.Rows, error) + func (d *DB) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) + func (d *DB) SetCaching(enabled bool) *DB + type Tx struct + func (t *Tx) Exec(query string, args ...interface{}) (sql.Result, error) + func (t *Tx) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + func (t *Tx) Prepare(query string) (*sql.Stmt, error) + func (t *Tx) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) + func (t *Tx) Query(query string, args ...interface{}) (*sql.Rows, error) + func (t *Tx) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)