Versions in this module Expand all Collapse all v0 v0.0.1 Mar 23, 2016 Changes in this version + const DOLLAR + const NAMED + const QUESTION + const UNKNOWN + var NameMapper = strings.ToLower + 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 In(query string, args ...interface{}) (string, []interface{}, error) + func LoadFile(e Execer, 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 Named(query string, arg interface{}) (string, []interface{}, error) + func NamedExec(e Ext, 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 SliceScan(r ColScanner) ([]interface{}, error) + func StructScan(rows rowsi, dest interface{}) error + type ColScanner interface + Columns func() ([]string, error) + Err func() error + Scan func(dest ...interface{}) error + type DB struct + Mapper *reflectx.Mapper + func Connect(driverName, dataSourceName string) (*DB, error) + func MustConnect(driverName, dataSourceName string) *DB + func MustOpen(driverName, dataSourceName string) *DB + func NewDb(db *sql.DB, driverName string) *DB + func Open(driverName, dataSourceName string) (*DB, error) + func (db *DB) Beginx() (*Tx, error) + func (db *DB) BindNamed(query string, arg interface{}) (string, []interface{}, error) + func (db *DB) DriverName() string + func (db *DB) Get(dest interface{}, query string, args ...interface{}) error + func (db *DB) MapperFunc(mf func(string) string) + func (db *DB) MustBegin() *Tx + func (db *DB) MustExec(query string, args ...interface{}) sql.Result + func (db *DB) NamedExec(query string, arg interface{}) (sql.Result, error) + func (db *DB) NamedQuery(query string, arg interface{}) (*Rows, error) + func (db *DB) PrepareNamed(query string) (*NamedStmt, error) + func (db *DB) Preparex(query string) (*Stmt, error) + func (db *DB) QueryRowx(query string, args ...interface{}) *Row + func (db *DB) Queryx(query string, args ...interface{}) (*Rows, error) + func (db *DB) Rebind(query string) string + func (db *DB) Select(dest interface{}, query string, args ...interface{}) error + func (db *DB) Unsafe() *DB + type Execer interface + Exec func(query string, args ...interface{}) (sql.Result, error) + type Ext interface + type NamedStmt struct + Params []string + QueryString string + Stmt *Stmt + func (n *NamedStmt) Close() error + func (n *NamedStmt) Exec(arg interface{}) (sql.Result, error) + func (n *NamedStmt) Get(dest interface{}, arg interface{}) error + func (n *NamedStmt) MustExec(arg interface{}) sql.Result + func (n *NamedStmt) Query(arg interface{}) (*sql.Rows, error) + func (n *NamedStmt) QueryRow(arg interface{}) *Row + func (n *NamedStmt) QueryRowx(arg interface{}) *Row + func (n *NamedStmt) Queryx(arg interface{}) (*Rows, error) + func (n *NamedStmt) Select(dest interface{}, arg interface{}) error + func (n *NamedStmt) Unsafe() *NamedStmt + type Preparer interface + Prepare func(query string) (*sql.Stmt, error) + type Queryer interface + Query func(query string, args ...interface{}) (*sql.Rows, error) + QueryRowx func(query string, args ...interface{}) *Row + Queryx func(query string, args ...interface{}) (*Rows, error) + type Row struct + Mapper *reflectx.Mapper + func (r *Row) Columns() ([]string, error) + func (r *Row) Err() error + func (r *Row) MapScan(dest map[string]interface{}) error + func (r *Row) Scan(dest ...interface{}) error + func (r *Row) SliceScan() ([]interface{}, error) + func (r *Row) StructScan(dest interface{}) error + type Rows struct + Mapper *reflectx.Mapper + func NamedQuery(e Ext, query string, arg interface{}) (*Rows, error) + func (r *Rows) MapScan(dest map[string]interface{}) error + func (r *Rows) SliceScan() ([]interface{}, error) + func (r *Rows) StructScan(dest interface{}) error + type Stmt struct + Mapper *reflectx.Mapper + func Preparex(p Preparer, query string) (*Stmt, error) + func (s *Stmt) Get(dest interface{}, args ...interface{}) error + func (s *Stmt) MustExec(args ...interface{}) sql.Result + func (s *Stmt) QueryRowx(args ...interface{}) *Row + func (s *Stmt) Queryx(args ...interface{}) (*Rows, error) + func (s *Stmt) Select(dest interface{}, args ...interface{}) error + func (s *Stmt) Unsafe() *Stmt + type Tx struct + Mapper *reflectx.Mapper + func (tx *Tx) BindNamed(query string, arg interface{}) (string, []interface{}, error) + func (tx *Tx) DriverName() string + func (tx *Tx) Get(dest interface{}, query string, args ...interface{}) error + func (tx *Tx) MustExec(query string, args ...interface{}) sql.Result + func (tx *Tx) NamedExec(query string, arg interface{}) (sql.Result, error) + func (tx *Tx) NamedQuery(query string, arg interface{}) (*Rows, error) + func (tx *Tx) NamedStmt(stmt *NamedStmt) *NamedStmt + func (tx *Tx) PrepareNamed(query string) (*NamedStmt, error) + func (tx *Tx) Preparex(query string) (*Stmt, error) + func (tx *Tx) QueryRowx(query string, args ...interface{}) *Row + func (tx *Tx) Queryx(query string, args ...interface{}) (*Rows, error) + func (tx *Tx) Rebind(query string) string + func (tx *Tx) Select(dest interface{}, query string, args ...interface{}) error + func (tx *Tx) Stmtx(stmt interface{}) *Stmt + func (tx *Tx) Unsafe() *Tx