Versions in this module Expand all Collapse all v0 v0.2.0 Apr 15, 2020 Changes in this version + func InitCache(cfg *config.Settings, name string, verbose bool) (*session.SessionRegistry, error) + func InitConn(cfg *config.Settings, name string, verbose bool) (*xorm.Engine, error) + func MoveEdge(query *xorm.Session, base uint, offset string) error + func Paginate(query *xorm.Session, out interface{}, pageno, pagesize int) (int, error) + type BaseModel struct + Id uint + func (BaseModel) TableComment() string + type FilterFunc = func(query *xorm.Session) *xorm.Session + type ITableComment interface + TableComment func() string + type ITableName interface + TableName func() string + type NestedModel struct + Depth int + Lft int + Rgt int + func (n *NestedModel) AddToParent(parent *NestedModel, tbQuery *xorm.Session) error + func (n NestedModel) AncestorsFilter(Backward bool) FilterFunc + func (n NestedModel) ChildrenFilter(rank uint8) FilterFunc + func (n NestedModel) CountChildren() int + func (n NestedModel) IsLeaf() bool + type SqlTag struct + func NewSqlTag() *SqlTag + func (st *SqlTag) Delete(key string) + func (st *SqlTag) Get(key string) (string, bool) + func (st *SqlTag) ParseTag(tag reflect.StructTag) + func (st *SqlTag) Set(key, val string) + func (st *SqlTag) String(head string) string + type TimeModel struct + CreatedAt time.Time + DeletedAt time.Time + UpdatedAt time.Time