Versions in this module Expand all Collapse all v1 v1.0.1 Nov 15, 2019 v1.0.0 Nov 15, 2019 Changes in this version + var DB *sqlx.DB + func Exec(pattern string, arg interface{}) (result sql.Result, err error) + func Query(pattern string, arg interface{}) (rows *sqlx.Rows, err error) + func QueryRow(pattern string, arg interface{}) (row *sqlx.Row, err error) + type DSN struct + Database string + Host string + Password string + Port string + Username string + func (d *DSN) Conn() (err error) + type Tx struct + func Begin() (tx Tx, err error) + func (tx Tx) Commit() (err error) + func (tx Tx) Exec(pattern string, arg interface{}) (result sql.Result, err error) + func (tx Tx) Query(pattern string, arg interface{}) (rows *sqlx.Rows, err error) + func (tx Tx) QueryRow(pattern string, arg interface{}) (row *sqlx.Row, err error) + func (tx Tx) Rollback() (err error)