Documentation ¶
Index ¶
- func DB() *sql.DB
- func Init(dbpath string)
- func Query(sql string, args ...interface{}) error
- func Select(sql string, out interface{}, args ...interface{}) (err error)
- func SelectFirst(sql string, args ...interface{}) (interface{}, error)
- func SelectStruct(sql string, obj interface{}, args ...interface{}) (interface{}, error)
- type Database
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SelectFirst ¶
SelectFirst - selects first result from a row
func SelectStruct ¶
SelectStruct - returns selected result as struct
Types ¶
Click to show internal directories.
Click to hide internal directories.