Documentation ¶
Index ¶
- Constants
- Variables
- func BindDriver(driverName string, bindType int)
- func BindNamed(bindType int, query string, arg interface{}) (string, []interface{}, error)
- func BindType(driverName string) int
- func Get(q Queryer, dest interface{}, query string, args ...interface{}) error
- func GetContext(ctx context.Context, q QueryerContext, dest interface{}, query string, ...) error
- func In(query string, args ...interface{}) (string, []interface{}, error)
- func LoadFile(e Execer, path string) (*sql.Result, error)
- func LoadFileContext(ctx context.Context, e ExecerContext, path string) (*sql.Result, error)
- func MapScan(r ColScanner, dest map[string]interface{}) error
- func MustExec(e Execer, query string, args ...interface{}) sql.Result
- func MustExecContext(ctx context.Context, e ExecerContext, query string, args ...interface{}) sql.Result
- func Named(query string, arg interface{}) (string, []interface{}, error)
- func NamedExec(e Ext, query string, arg interface{}) (sql.Result, error)
- func NamedExecContext(ctx context.Context, e ExtContext, query string, arg interface{}) (sql.Result, error)
- func Rebind(bindType int, query string) string
- func Select(q Queryer, dest interface{}, query string, args ...interface{}) error
- func SelectContext(ctx context.Context, q QueryerContext, dest interface{}, query string, ...) error
- func SliceScan(r ColScanner) ([]interface{}, error)
- func StructScan(rows rowsi, dest interface{}) error
- type ColScanner
- type Conn
- type DB
- func Connect(driverName, dataSourceName string, opts ...otelsql.Option) (*DB, error)
- func ConnectContext(ctx context.Context, driverName, dataSourceName string, opts ...otelsql.Option) (*DB, error)
- func MustConnect(driverName, dataSourceName string, opts ...otelsql.Option) *DB
- func MustOpen(driverName, dataSourceName string, opts ...otelsql.Option) *DB
- func NewDb(db *sql.DB, driverName string) *DB
- func Open(driverName, dataSourceName string, opts ...otelsql.Option) (*DB, error)
- type Execer
- type ExecerContext
- type Ext
- type ExtContext
- type NamedStmt
- type Preparer
- type PreparerContext
- type Queryer
- type QueryerContext
- type Row
- type Rows
- type Stmt
- type Tx
Constants ¶
View Source
const AT = origin_sqlx.AT
View Source
const DOLLAR = origin_sqlx.DOLLAR
View Source
const NAMED = origin_sqlx.NAMED
View Source
const QUESTION = origin_sqlx.QUESTION
View Source
const UNKNOWN = origin_sqlx.UNKNOWN
Variables ¶
View Source
var NameMapper = origin_sqlx.NameMapper
Functions ¶
func BindDriver ¶
func GetContext ¶
func GetContext(ctx context.Context, q QueryerContext, dest interface{}, query string, args ...interface{}) error
func LoadFileContext ¶
func MapScan ¶
func MapScan(r ColScanner, dest map[string]interface{}) error
func MustExecContext ¶
func NamedExecContext ¶
func SelectContext ¶
func SelectContext(ctx context.Context, q QueryerContext, dest interface{}, query string, args ...interface{}) error
func SliceScan ¶
func SliceScan(r ColScanner) ([]interface{}, error)
func StructScan ¶
func StructScan(rows rowsi, dest interface{}) error
Types ¶
type ColScanner ¶
type ColScanner = origin_sqlx.ColScanner
type Conn ¶
type Conn = origin_sqlx.Conn
type Execer ¶
type Execer = origin_sqlx.Execer
type ExecerContext ¶
type ExecerContext = origin_sqlx.ExecerContext
type Ext ¶
type Ext = origin_sqlx.Ext
type ExtContext ¶
type ExtContext = origin_sqlx.ExtContext
type NamedStmt ¶
type NamedStmt = origin_sqlx.NamedStmt
type Preparer ¶
type Preparer = origin_sqlx.Preparer
type PreparerContext ¶
type PreparerContext = origin_sqlx.PreparerContext
type Queryer ¶
type Queryer = origin_sqlx.Queryer
type QueryerContext ¶
type QueryerContext = origin_sqlx.QueryerContext
type Row ¶
type Row = origin_sqlx.Row
type Tx ¶
type Tx = origin_sqlx.Tx
Click to show internal directories.
Click to hide internal directories.