Versions in this module Expand all Collapse all v1 v1.0.0 May 12, 2019 Changes in this version + type Connection struct + func New(driverName, dsn string) (*Connection, error) + func NewUnsafe(driverName, dsn string) (*Connection, error) + func (db *Connection) Beginx() (sqldb.Tx, error) + func (db *Connection) Close() error + func (db *Connection) DSN() string + func (db *Connection) SQL() *sql.DB + type Queryable struct + func NewQueryable(con sqlxQueryable) *Queryable + func (db *Queryable) Exec(query string, args ...interface{}) (rowsAffected int64, err error) + func (db *Queryable) Get(dest interface{}, query string, args ...interface{}) error + func (db *Queryable) NamedExec(query string, arg interface{}) (rowAffected int64, err error) + func (db *Queryable) NamedGet(dest interface{}, query string, args interface{}) error + func (db *Queryable) NamedSelect(dest interface{}, query string, args interface{}) error + func (db *Queryable) Select(dest interface{}, query string, args ...interface{}) error + type Tx struct + func NewTx(con *sqlx.DB) (*Tx, error) + func (con *Tx) Commit() error + func (con *Tx) Rollback() error