Documentation ¶
Overview ¶
odbc查询工具函数 By woylin 2016.6.14
Index ¶
- func ChangeDb(s ...string) error
- func CheckBool(sql string, cond ...interface{}) bool
- func Exec(query string, cond ...interface{}) error
- func Fetch(query string, cond ...interface{}) *interface{}
- func FetchAll(query string, cond ...interface{}) *[]interface{}
- func FetchAllJson(sql string, cond ...interface{}) string
- func FetchAllRowsPtr(query string, struc interface{}, cond ...interface{}) *[]interface{}
- func FetchMenuTree(query string, cond ...interface{}) *treeNode
- func FetchOne(query string, cond ...interface{}) *map[string]interface{}
- func FetchOnePtr(query string, struc interface{}, cond ...interface{}) *interface{}
- func FetchOneString(query string, cond ...interface{}) map[string]string
- func NumRows(query string, cond ...interface{}) int
- func SetConf(confPath string)
- func SqlChk(s string) string
- type Db
- func (d *Db) CheckBool(sql string, cond ...interface{}) bool
- func (d *Db) Exec(query string, cond ...interface{}) error
- func (d *Db) Fetch(query string, cond ...interface{}) (interface{}, error)
- func (d *Db) FetchAll(query string, cond ...interface{}) (*[]interface{}, error)
- func (d *Db) FetchAllRowsPtr(query string, struc interface{}, cond ...interface{}) *[]interface{}
- func (d *Db) FetchOnePtr(query string, struc interface{}, cond ...interface{}) *interface{}
- func (d *Db) NumRows(query string, cond ...interface{}) int
- type DbConf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchAllJson ¶
FetchAllJson 返回所有行的Json
func FetchAllRowsPtr ¶
func FetchAllRowsPtr(query string, struc interface{}, cond ...interface{}) *[]interface{}
FetchAllRowsPtr 通用查询
func FetchMenuTree ¶
func FetchMenuTree(query string, cond ...interface{}) *treeNode
FetchMenuTree ES目录树
func FetchOnePtr ¶
func FetchOnePtr(query string, struc interface{}, cond ...interface{}) *interface{}
FetchOnePtr 通用查询单条
func FetchOneString ¶
FetchOneString 返回单行文本
Types ¶
Click to show internal directories.
Click to hide internal directories.