Documentation ¶
Index ¶
- func ExeSqlByTransaction(engine xorm.Engine, isCheck bool, sqlSlice ...*SqlData) error
- func GetTableName(tableStruct interface{}) string
- func GetTableRowById(engine *xorm.Engine, o interface{}, id int) error
- func InitMap()
- func UpdateTableById(engine *xorm.Engine, tableStruct interface{}, updateMap map[string]interface{}) error
- type SqlData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExeSqlByTransaction ¶
通过事务提交sql isCheck,更新有效记录是否必须不为0
func GetTableName ¶
func GetTableName(tableStruct interface{}) string
通过反射调用结构对应的TableName函数,达到返回表名的目的
Types ¶
Click to show internal directories.
Click to hide internal directories.