Documentation ¶
Index ¶
Constants ¶
View Source
const ( // BKDBIN the db operator BKDBIN = "$in" // BKDBOR the db operator BKDBOR = "$or" // BKDBLIKE the db operator BKDBLIKE = "$regex" // BKDBEQ the db operator BKDBEQ = "$eq" // BKDBNE the db operator BKDBNE = "$ne" // BKDBNIN the db oeprator BKDBNIN = "$nin" // BKDBLT the db operator BKDBLT = "$lt" // BKDBLTE the db operator BKDBLTE = "$lte" // BKDBGT the db operator BKDBGT = "$gt" // BKDBGTE the db opeartor BKDBGTE = "$gte" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Condition ¶
type Condition interface { SetPage(page types.MapStr) error SetStart(start int64) GetStart() int64 SetLimit(limit int64) GetLimit() int64 SetSort(sort string) GetSort() string SetFields(fields []string) GetFields() []string Field(fieldName string) Field Parse(data types.MapStr) error ToMapStr() types.MapStr }
Condition condition interface
type Field ¶
type Field interface { Eq(val interface{}) Condition NotEq(val interface{}) Condition Like(val interface{}) Condition In(val interface{}) Condition NotIn(val interface{}) Condition Lt(val interface{}) Condition Lte(val interface{}) Condition Gt(val interface{}) Condition Gte(val interface{}) Condition ToMapStr() types.MapStr }
Field create a field
Click to show internal directories.
Click to hide internal directories.