Documentation ¶
Index ¶
- func CreateTables() error
- func Get(dest interface{}, query string, args ...interface{}) error
- func InitDB()
- func MustExec(query string, args ...interface{}) sql.Result
- func NamedExec(query string, arg interface{}) (sql.Result, error)
- func NamedInsert(query string, arg interface{}) (int64, error)
- func NamedQuery(query string, arg interface{}) (*sqlx.Rows, error)
- func NamedUpdate(query string, arg interface{}) (int64, error)
- func Query(query string, args ...interface{}) (*sqlx.Rows, error)
- func Select(dest interface{}, query string, args ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTables ¶
func CreateTables() error
func NamedInsert ¶
NamedInsert execute insert statement, return last insert id and error
func NamedUpdate ¶
NamedUpdate execute update statement, return affected row count and error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.