Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnType ¶
type Conn ¶
type Conn interface { BeginTx(context.Context, *sql.TxOptions) (Tx, error) Close() error ExecContext(context.Context, string, ...interface{}) (sql.Result, error) PingContext(context.Context) error PrepareContext(context.Context, string) (Stmt, error) QueryContext(context.Context, string, ...interface{}) (Rows, error) QueryRowContext(context.Context, string, ...interface{}) Row Raw(func(driverConn interface{}) error) error }
type Connx ¶
type Connx interface { Conn BeginTxx(context.Context, *sql.TxOptions) (Txx, error) GetContext(context.Context, interface{}, string, ...interface{}) error PreparexContext(context.Context, string) (Stmtx, error) QueryRowxContext(context.Context, string, ...interface{}) Rowx QueryxContext(context.Context, string, ...interface{}) (Rowsx, error) Rebind(string) string SelectContext(context.Context, interface{}, string, ...interface{}) error }
type DB ¶
type DB interface { Querier Begin() (Tx, error) BeginTx(context.Context, *sql.TxOptions) (Tx, error) Close() error Conn(context.Context) (Conn, error) Driver() driver.Driver Ping() error PingContext(context.Context) error SetConnMaxIdleTime(time.Duration) SetConnMaxLifetime(time.Duration) SetMaxIdleConns(int) SetMaxOpenConns(int) Stats() sql.DBStats }
type DBx ¶
type DBx interface { DB Querierx BeginTxx(context.Context, *sql.TxOptions) (Txx, error) Beginx() (Txx, error) Connx(context.Context) (Connx, error) DriverName() string MapperFunc(func(string) string) MustBegin() Txx MustBeginTx(context.Context, *sql.TxOptions) Txx NamedQueryContext(context.Context, string, interface{}) (Rowsx, error) Rebind(string) string Unsafe() DBx }
func ConnectxContext ¶
func MustConnectx ¶
type NamedStmt ¶
type NamedStmt interface { Close() error Exec(interface{}) (sql.Result, error) ExecContext(context.Context, interface{}) (sql.Result, error) Get(interface{}, interface{}) error GetContext(context.Context, interface{}, interface{}) error MustExec(interface{}) sql.Result MustExecContext(context.Context, interface{}) sql.Result Query(interface{}) (Rows, error) QueryContext(context.Context, interface{}) (Rows, error) QueryRow(interface{}) Rowx QueryRowContext(context.Context, interface{}) Rowx QueryRowx(interface{}) Rowx QueryRowxContext(context.Context, interface{}) Rowx Queryx(interface{}) (Rowsx, error) QueryxContext(context.Context, interface{}) (Rowsx, error) Select(interface{}, interface{}) error SelectContext(context.Context, interface{}, interface{}) error Unsafe() NamedStmt }
type Querier ¶ added in v0.2.0
type Querier interface { Exec(string, ...interface{}) (sql.Result, error) ExecContext(context.Context, string, ...interface{}) (sql.Result, error) Prepare(string) (Stmt, error) PrepareContext(context.Context, string) (Stmt, error) Query(string, ...interface{}) (Rows, error) QueryContext(context.Context, string, ...interface{}) (Rows, error) QueryRow(string, ...interface{}) Row QueryRowContext(context.Context, string, ...interface{}) Row }
type Querierx ¶ added in v0.2.0
type Querierx interface { Querier BindNamed(string, interface{}) (string, []interface{}, error) DriverName() string Get(interface{}, string, ...interface{}) error GetContext(context.Context, interface{}, string, ...interface{}) error MustExec(string, ...interface{}) sql.Result MustExecContext(context.Context, string, ...interface{}) sql.Result NamedExec(string, interface{}) (sql.Result, error) NamedExecContext(context.Context, string, interface{}) (sql.Result, error) NamedQuery(string, interface{}) (Rowsx, error) PrepareNamed(string) (NamedStmt, error) PrepareNamedContext(context.Context, string) (NamedStmt, error) Preparex(string) (Stmtx, error) PreparexContext(context.Context, string) (Stmtx, error) QueryRowx(string, ...interface{}) Rowx QueryRowxContext(context.Context, string, ...interface{}) Rowx Queryx(string, ...interface{}) (Rowsx, error) QueryxContext(context.Context, string, ...interface{}) (Rowsx, error) Rebind(string) string Select(interface{}, string, ...interface{}) error SelectContext(context.Context, interface{}, string, ...interface{}) error }
type Stmt ¶
type Stmt interface { Close() error Exec(...interface{}) (sql.Result, error) ExecContext(context.Context, ...interface{}) (sql.Result, error) Query(...interface{}) (Rows, error) QueryContext(context.Context, ...interface{}) (Rows, error) QueryRow(...interface{}) Row QueryRowContext(context.Context, ...interface{}) Row }
type Stmtx ¶
type Stmtx interface { Stmt Get(interface{}, ...interface{}) error GetContext(context.Context, interface{}, ...interface{}) error MustExec(...interface{}) sql.Result MustExecContext(context.Context, ...interface{}) sql.Result QueryRowx(...interface{}) Rowx QueryRowxContext(context.Context, ...interface{}) Rowx Queryx(...interface{}) (Rowsx, error) QueryxContext(context.Context, ...interface{}) (Rowsx, error) Select(interface{}, ...interface{}) error SelectContext(context.Context, interface{}, ...interface{}) error Unsafe() Stmtx }
Click to show internal directories.
Click to hide internal directories.