Versions in this module Expand all Collapse all v0 v0.2.0 Jun 23, 2021 Changes in this version + type Querier interface + Exec func(string, ...interface{}) (sql.Result, error) + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + Prepare func(string) (Stmt, error) + PrepareContext func(context.Context, string) (Stmt, error) + Query func(string, ...interface{}) (Rows, error) + QueryContext func(context.Context, string, ...interface{}) (Rows, error) + QueryRow func(string, ...interface{}) Row + QueryRowContext func(context.Context, string, ...interface{}) Row + type Querierx interface + BindNamed func(string, interface{}) (string, []interface{}, error) + DriverName func() string + Get func(interface{}, string, ...interface{}) error + GetContext func(context.Context, interface{}, string, ...interface{}) error + MustExec func(string, ...interface{}) sql.Result + MustExecContext func(context.Context, string, ...interface{}) sql.Result + NamedExec func(string, interface{}) (sql.Result, error) + NamedExecContext func(context.Context, string, interface{}) (sql.Result, error) + NamedQuery func(string, interface{}) (Rowsx, error) + PrepareNamed func(string) (NamedStmt, error) + PrepareNamedContext func(context.Context, string) (NamedStmt, error) + Preparex func(string) (Stmtx, error) + PreparexContext func(context.Context, string) (Stmtx, error) + QueryRowx func(string, ...interface{}) Rowx + QueryRowxContext func(context.Context, string, ...interface{}) Rowx + Queryx func(string, ...interface{}) (Rowsx, error) + QueryxContext func(context.Context, string, ...interface{}) (Rowsx, error) + Rebind func(string) string + Select func(interface{}, string, ...interface{}) error + SelectContext func(context.Context, interface{}, string, ...interface{}) error v0.1.0 Jun 19, 2021 Changes in this version + type ColumnType interface + DatabaseTypeName func() string + DecimalSize func() (int64, int64, bool) + Length func() (int64, bool) + Name func() string + Nullable func() (bool, bool) + ScanType func() reflect.Type + type Conn interface + BeginTx func(context.Context, *sql.TxOptions) (Tx, error) + Close func() error + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + PingContext func(context.Context) error + PrepareContext func(context.Context, string) (Stmt, error) + QueryContext func(context.Context, string, ...interface{}) (Rows, error) + QueryRowContext func(context.Context, string, ...interface{}) Row + Raw func(func(driverConn interface{}) error) error + type Connx interface + BeginTxx func(context.Context, *sql.TxOptions) (Txx, error) + GetContext func(context.Context, interface{}, string, ...interface{}) error + PreparexContext func(context.Context, string) (Stmtx, error) + QueryRowxContext func(context.Context, string, ...interface{}) Rowx + QueryxContext func(context.Context, string, ...interface{}) (Rowsx, error) + Rebind func(string) string + SelectContext func(context.Context, interface{}, string, ...interface{}) error + type DB interface + Begin func() (Tx, error) + BeginTx func(context.Context, *sql.TxOptions) (Tx, error) + Close func() error + Conn func(context.Context) (Conn, error) + Driver func() driver.Driver + Exec func(string, ...interface{}) (sql.Result, error) + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + Ping func() error + PingContext func(context.Context) error + Prepare func(string) (Stmt, error) + PrepareContext func(context.Context, string) (Stmt, error) + Query func(string, ...interface{}) (Rows, error) + QueryContext func(context.Context, string, ...interface{}) (Rows, error) + QueryRow func(string, ...interface{}) Row + QueryRowContext func(context.Context, string, ...interface{}) Row + SetConnMaxIdleTime func(time.Duration) + SetConnMaxLifetime func(time.Duration) + SetMaxIdleConns func(int) + SetMaxOpenConns func(int) + Stats func() sql.DBStats + func Open(driverName, dsn string) (DB, error) + func OpenDB(c driver.Connector) DB + func With(db *sql.DB) DB + type DBx interface + BeginTxx func(context.Context, *sql.TxOptions) (Txx, error) + Beginx func() (Txx, error) + BindNamed func(string, interface{}) (string, []interface{}, error) + Connx func(context.Context) (Connx, error) + DriverName func() string + Get func(interface{}, string, ...interface{}) error + GetContext func(context.Context, interface{}, string, ...interface{}) error + MapperFunc func(func(string) string) + MustBegin func() Txx + MustBeginTx func(context.Context, *sql.TxOptions) Txx + MustExec func(string, ...interface{}) sql.Result + MustExecContext func(context.Context, string, ...interface{}) sql.Result + NamedExec func(string, interface{}) (sql.Result, error) + NamedExecContext func(context.Context, string, interface{}) (sql.Result, error) + NamedQuery func(string, interface{}) (Rowsx, error) + NamedQueryContext func(context.Context, string, interface{}) (Rowsx, error) + PrepareNamed func(string) (NamedStmt, error) + PrepareNamedContext func(context.Context, string) (NamedStmt, error) + Preparex func(string) (Stmtx, error) + PreparexContext func(context.Context, string) (Stmtx, error) + QueryRowx func(string, ...interface{}) Rowx + QueryRowxContext func(context.Context, string, ...interface{}) Rowx + Queryx func(string, ...interface{}) (Rowsx, error) + QueryxContext func(context.Context, string, ...interface{}) (Rowsx, error) + Rebind func(string) string + Select func(interface{}, string, ...interface{}) error + SelectContext func(context.Context, interface{}, string, ...interface{}) error + Unsafe func() DBx + func Connectx(driverName, dsn string) (DBx, error) + func ConnectxContext(ctx context.Context, driverName, dsn string) (DBx, error) + func MustConnectx(driverName, dsn string) DBx + func MustOpenx(driverName, dsn string) DBx + func Openx(driverName, dsn string) (DBx, error) + func Withx(db *sqlx.DB) DBx + type NamedStmt interface + Close func() error + Exec func(interface{}) (sql.Result, error) + ExecContext func(context.Context, interface{}) (sql.Result, error) + Get func(interface{}, interface{}) error + GetContext func(context.Context, interface{}, interface{}) error + MustExec func(interface{}) sql.Result + MustExecContext func(context.Context, interface{}) sql.Result + Query func(interface{}) (Rows, error) + QueryContext func(context.Context, interface{}) (Rows, error) + QueryRow func(interface{}) Rowx + QueryRowContext func(context.Context, interface{}) Rowx + QueryRowx func(interface{}) Rowx + QueryRowxContext func(context.Context, interface{}) Rowx + Queryx func(interface{}) (Rowsx, error) + QueryxContext func(context.Context, interface{}) (Rowsx, error) + Select func(interface{}, interface{}) error + SelectContext func(context.Context, interface{}, interface{}) error + Unsafe func() NamedStmt + type Row interface + Err func() error + Scan func(...interface{}) error + type Rows interface + Close func() error + ColumnTypes func() ([]ColumnType, error) + Columns func() ([]string, error) + Err func() error + Next func() bool + NextResultSet func() bool + Scan func(...interface{}) error + type Rowsx interface + MapScan func(map[string]interface{}) error + SliceScan func() ([]interface{}, error) + StructScan func(interface{}) error + type Rowx interface + ColumnTypes func() ([]ColumnType, error) + Columns func() ([]string, error) + MapScan func(map[string]interface{}) error + SliceScan func() ([]interface{}, error) + StructScan func(interface{}) error + type Stmt interface + Close func() error + Exec func(...interface{}) (sql.Result, error) + ExecContext func(context.Context, ...interface{}) (sql.Result, error) + Query func(...interface{}) (Rows, error) + QueryContext func(context.Context, ...interface{}) (Rows, error) + QueryRow func(...interface{}) Row + QueryRowContext func(context.Context, ...interface{}) Row + type Stmtx interface + Get func(interface{}, ...interface{}) error + GetContext func(context.Context, interface{}, ...interface{}) error + MustExec func(...interface{}) sql.Result + MustExecContext func(context.Context, ...interface{}) sql.Result + QueryRowx func(...interface{}) Rowx + QueryRowxContext func(context.Context, ...interface{}) Rowx + Queryx func(...interface{}) (Rowsx, error) + QueryxContext func(context.Context, ...interface{}) (Rowsx, error) + Select func(interface{}, ...interface{}) error + SelectContext func(context.Context, interface{}, ...interface{}) error + Unsafe func() Stmtx + type Tx interface + Commit func() error + Exec func(string, ...interface{}) (sql.Result, error) + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + Prepare func(string) (Stmt, error) + PrepareContext func(context.Context, string) (Stmt, error) + Query func(string, ...interface{}) (Rows, error) + QueryContext func(context.Context, string, ...interface{}) (Rows, error) + QueryRow func(string, ...interface{}) Row + QueryRowContext func(context.Context, string, ...interface{}) Row + Rollback func() error + Stmt func(*sql.Stmt) Stmt + StmtContext func(context.Context, *sql.Stmt) Stmt + type Txx interface + BindNamed func(string, interface{}) (string, []interface{}, error) + DriverName func() string + Get func(interface{}, string, ...interface{}) error + GetContext func(context.Context, interface{}, string, ...interface{}) error + MustExec func(string, ...interface{}) sql.Result + MustExecContext func(context.Context, string, ...interface{}) sql.Result + NamedExec func(string, interface{}) (sql.Result, error) + NamedExecContext func(context.Context, string, interface{}) (sql.Result, error) + NamedQuery func(string, interface{}) (Rowsx, error) + NamedStmt func(*sqlx.NamedStmt) NamedStmt + NamedStmtContext func(context.Context, *sqlx.NamedStmt) NamedStmt + PrepareNamed func(string) (NamedStmt, error) + PrepareNamedContext func(context.Context, string) (NamedStmt, error) + Preparex func(string) (Stmtx, error) + PreparexContext func(context.Context, string) (Stmtx, error) + QueryRowx func(string, ...interface{}) Rowx + QueryRowxContext func(context.Context, string, ...interface{}) Rowx + Queryx func(string, ...interface{}) (Rowsx, error) + QueryxContext func(context.Context, string, ...interface{}) (Rowsx, error) + Rebind func(string) string + Select func(interface{}, string, ...interface{}) error + SelectContext func(context.Context, interface{}, string, ...interface{}) error + Stmtx func(interface{}) Stmtx + StmtxContext func(context.Context, interface{}) Stmtx + Unsafe func() Txx