Documentation ¶
Index ¶
- Constants
- func CompareField(l, r Field) bool
- func CompareModel(l, r Model) bool
- func CompareTag(l, r Tag) bool
- func CompareType(l, r Type) bool
- func CompareValue(l, r Value) bool
- type Cache
- type Field
- type Fields
- type Filter
- type FilterItem
- type Model
- type OprCode
- type Sorter
- type Tag
- type Type
- type Value
Constants ¶
View Source
const ( EqualOpr = iota // = NotEqualOpr // != BelowOpr // < AboveOpr // > InOpr // in NotInOpr // not in LikeOpr // like )
Variables ¶
This section is empty.
Functions ¶
func CompareField ¶
func CompareModel ¶
func CompareTag ¶
func CompareType ¶
func CompareValue ¶
Types ¶
type Cache ¶
type Cache interface { Reset() Put(name string, info Model) Fetch(name string) Model Remove(name string) }
Cache Model Cache
type Fields ¶
type Fields []Field
Fields field info collection
func (*Fields) GetPrimaryField ¶
GetPrimaryField get primary key field
type Filter ¶
type Filter interface { Equal(key string, val interface{}) error NotEqual(key string, val interface{}) error Below(key string, val interface{}) error Above(key string, val interface{}) error In(key string, val interface{}) error NotIn(key string, val interface{}) error Like(key string, val interface{}) error Page(filter *util.Pagination) Sort(sorter *util.SortFilter) ValueMask(val interface{}) error GetFilterItem(key string) FilterItem Pagination() (limit, offset int, paging bool) Sorter() Sorter MaskModel() Model }
Filter orm query filter
type FilterItem ¶
FilterItem FilterItem
Click to show internal directories.
Click to hide internal directories.