Documentation ¶
Index ¶
- type XormPlus
- func (orm *XormPlus) Collention(sqlStr string, args ...interface{}) (map[string]string, error)
- func (orm *XormPlus) Collentions(sqlStr string, args ...interface{}) ([]map[string]string, error)
- func (orm *XormPlus) Fetch(inst interface{}, filter interface{}, conds ...interface{}) error
- func (orm *XormPlus) List(inst interface{}, filter interface{}, conds ...interface{}) error
- func (orm *XormPlus) Page(n int, perNum ...int) *XormPlus
- func (orm *XormPlus) RawCollention(sqlStr string, args ...interface{}) (map[string]interface{}, error)
- func (orm *XormPlus) RawCollentions(sqlStr string, args ...interface{}) ([]map[string]interface{}, error)
- func (orm *XormPlus) SetFieldMap(fieldMap func(string) string) *XormPlus
- func (orm *XormPlus) SetPageNavi(setting map[string]int) *XormPlus
- func (orm *XormPlus) Update(inst interface{}, cols []string, filter interface{}, conds ...interface{}) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type XormPlus ¶
XormPlus xorm 的扩展版本
func (*XormPlus) Collention ¶
Collention 将给定的 ds 结果集 按照 mapKeys 的规则映射
func (*XormPlus) Collentions ¶
Collentions 将给定的 ds 结果集 按照 mapKeys 的规则映射
func (*XormPlus) RawCollention ¶
func (orm *XormPlus) RawCollention(sqlStr string, args ...interface{}) (map[string]interface{}, error)
RawCollention 将给定的 ds 结果集 按照 mapKeys 的规则映射
func (*XormPlus) RawCollentions ¶
func (orm *XormPlus) RawCollentions(sqlStr string, args ...interface{}) ([]map[string]interface{}, error)
RawCollentions 将给定的 ds 结果集 按照 mapKeys 的规则映射
func (*XormPlus) SetFieldMap ¶
SetFieldMap 设置字段转换方式 默认方式是 hyphen2Hump
func (*XormPlus) SetPageNavi ¶
SetPageNavi 设置分页参数
Click to show internal directories.
Click to hide internal directories.