Documentation ¶
Index ¶
- Variables
- func Encode(v interface{}) string
- func GetWhere(def *TabDef, key ...interface{}) string
- func GetWherePKey(def *TabDef, data interface{}) string
- type Call
- type Config
- type Group
- func (g *Group) GetAllDef() []*TabDef
- func (g *Group) GetDef(tab string) *TabDef
- func (g *Group) ModDelete(tab string, data interface{}) (sql.Result, error)
- func (g *Group) ModDeletePKey(tab string, pkey ...interface{}) (sql.Result, error)
- func (g *Group) ModInsert(tab string, data interface{}) (sql.Result, error)
- func (g *Group) ModMultiInsert(tab string, data []interface{}) (sql.Result, error)
- func (g *Group) ModSelect(tab string, fields []string, where string) [][]interface{}
- func (g *Group) ModSelectAll(tab string, key ...interface{}) []interface{}
- func (g *Group) ModSelectAllWhere(tab string, where string) []interface{}
- func (g *Group) ModSelectRow(tab string, key ...interface{}) interface{}
- func (g *Group) ModUpdate(tab string, data interface{}) (sql.Result, error)
- func (g *Group) ModUpdateFields(tab string, fields []string, data []interface{}, where string) (sql.Result, error)
- func (g *Group) SyncDelete(tab string, indexKey int64, data interface{})
- func (g *Group) SyncDeletePKey(tab string, indexKey int64, pkey ...interface{})
- func (g *Group) SyncInsert(tab string, indexKey int64, data interface{})
- func (g *Group) SyncSelect(c Call, tab string, indexKey int64, key ...interface{}) []interface{}
- func (g *Group) SyncSelectRow(c Call, tab string, indexKey int64, key ...interface{}) interface{}
- func (g *Group) SyncUpdate(tab string, indexKey int64, data interface{})
- type Mode
- type TabDef
Constants ¶
This section is empty.
Variables ¶
View Source
var Env = &env{ ConnNum: 8, IsOpenCache: true, }
Functions ¶
func GetWherePKey ¶
Types ¶
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
func (*Group) ModDeletePKey ¶
func (*Group) ModMultiInsert ¶
func (*Group) ModSelectAll ¶
func (*Group) ModSelectAllWhere ¶
func (*Group) ModSelectRow ¶
func (*Group) ModUpdateFields ¶
func (*Group) SyncDelete ¶
func (*Group) SyncDeletePKey ¶
func (*Group) SyncInsert ¶
func (*Group) SyncSelect ¶
查询多条记录
func (*Group) SyncSelectRow ¶
查询单行
func (*Group) SyncUpdate ¶
Click to show internal directories.
Click to hide internal directories.