Documentation
¶
Index ¶
- func CreateDeleteSql(modelObj model.Model, dataMap map[string]interface{}) string
- func CreateInsertSql(modelObj model.Model, dataMap map[string]interface{}) string
- func CreateQuerySql(modelObj model.Model, dataMap map[string]interface{}) string
- func CreateUpdateSql(modelObj model.Model, dataMap map[string]interface{}) string
- func SetInsertSqlMap(nick string, sqlMap map[string]string, dataMap map[string]interface{})
- func SetQuerySqlMap(nick string, sqlMap map[string]string, dataMap map[string]interface{})
- func SetRemoveSqlMap(nick string, sqlMap map[string]string, dataMap map[string]interface{})
- func SetSaveSqlMap(nick string, sqlMap map[string]string, dataMap map[string]interface{})
- func SetUpdateSqlMap(nick string, sqlMap map[string]string, dataMap map[string]interface{})
- type Action
- func (action Action) DeleteModel(nick string, dataMap map[string]interface{}) bool
- func (action Action) GetModelData(nick string, dataMap map[string]interface{}) map[string]interface{}
- func (action Action) QueryModel(nick string, dataMap map[string]interface{}) []map[string]interface{}
- func (action Action) SaveModel(sqlMap map[string]string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDeleteSql ¶
创建插入SQL语句
func CreateInsertSql ¶
创建插入SQL语句
func CreateQuerySql ¶
创建查询SQL语句
func CreateUpdateSql ¶
创建更新SQL语句
func SetInsertSqlMap ¶
设置插入SQL映射表
func SetQuerySqlMap ¶
设置查询SQL映射表
func SetRemoveSqlMap ¶
设置删除SQL映射表
func SetSaveSqlMap ¶
设置保存SQL映射表
Types ¶
type Action ¶
type Action struct {
}
数据库动作对象
func (Action) DeleteModel ¶
删除模型
func (Action) GetModelData ¶
func (action Action) GetModelData(nick string, dataMap map[string]interface{}) map[string]interface{}
查询模型
Click to show internal directories.
Click to hide internal directories.