Versions in this module Expand all Collapse all v0 v0.0.2 Oct 16, 2024 v0.0.1 Oct 13, 2024 Changes in this version + type Base interface + Sql func() (string, []interface{}) + type Criteria struct + func C() Criteria + func (c Criteria) And(cri Base) Where + func (c Criteria) Append(cri Base) Where + func (c Criteria) Col(col string) Criteria + func (c Criteria) End(q Base) Where + func (c Criteria) Eq(val interface{}) Criteria + func (c Criteria) Gt(val interface{}) Criteria + func (c Criteria) Gte(val interface{}) Criteria + func (c Criteria) In(val interface{}) Criteria + func (c Criteria) IsNotNull() Criteria + func (c Criteria) IsNull() Criteria + func (c Criteria) Like(val interface{}) Criteria + func (c Criteria) Lt(val interface{}) Criteria + func (c Criteria) Lte(val interface{}) Criteria + func (c Criteria) Ne(val interface{}) Criteria + func (c Criteria) NotIn(val interface{}) Criteria + func (c Criteria) Or(cri Base) Where + func (c Criteria) Sql() (string, []interface{}) + func (c Criteria) ToWhere() Where + type Order struct + Col string + Sort sortenum.Sort + type Page struct + Offset int + Orders []Order + Size int + func NewPage(pageNo, pageSize int, orders ...Order) Page + func P() Page + func (p Page) Limit(offset, size int) Page + func (p Page) Order(o Order) Page + func (p Page) Sql() (string, []interface{}) + type PageRet struct + HasNext bool + Items interface{} + PageNo int + PageSize int + Total int + func NewPageRet(page Page) PageRet + type Q interface + And func(q Base) Where + Append func(q Base) Where + End func(q Base) Where + Or func(q Base) Where + type String string + func (s String) Sql() (string, []interface{}) + type Where struct + func (w Where) And(whe Base) Where + func (w Where) Append(whe Base) Where + func (w Where) End(q Base) Where + func (w Where) IsEmpty() bool + func (w Where) Or(whe Base) Where + func (w Where) Sql() (string, []interface{})