Versions in this module Expand all Collapse all v0 v0.2.0 Aug 15, 2020 v0.1.0 Aug 9, 2020 Changes in this version + func WithTx(db DB, f func(tx DB) error) error + type Base struct + func New(db *sqlx.DB) *Base + func (b *Base) DB() DB + func (b *Base) WithTx(f func(tx DB) error) error + type DB interface + BindNamed func(query string, arg interface{}) (string, []interface{}, error) + DriverName func() string + Get func(dest interface{}, query string, args ...interface{}) error + GetContext func(ctx context.Context, dest interface{}, query string, args ...interface{}) error + MustExec func(query string, args ...interface{}) sql.Result + MustExecContext func(ctx context.Context, query string, args ...interface{}) sql.Result + NamedExec func(query string, arg interface{}) (sql.Result, error) + NamedExecContext func(ctx context.Context, query string, arg interface{}) (sql.Result, error) + NamedQuery func(query string, arg interface{}) (*sqlx.Rows, error) + PrepareNamed func(query string) (*sqlx.NamedStmt, error) + PrepareNamedContext func(ctx context.Context, query string) (*sqlx.NamedStmt, error) + Preparex func(query string) (*sqlx.Stmt, error) + PreparexContext func(ctx context.Context, query string) (*sqlx.Stmt, error) + QueryContext func(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) + QueryRowx func(query string, args ...interface{}) *sqlx.Row + QueryRowxContext func(ctx context.Context, query string, args ...interface{}) *sqlx.Row + Queryx func(query string, args ...interface{}) (*sqlx.Rows, error) + QueryxContext func(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error) + Rebind func(query string) string + Select func(dest interface{}, query string, args ...interface{}) error + SelectContext func(ctx context.Context, dest interface{}, query string, args ...interface{}) error