Documentation ¶
Index ¶
- Variables
- 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
- type Tx
- 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)
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *sqlx.DB
DB 数据库连接
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.