Documentation ¶
Index ¶
- Variables
- type QueryParse
- type QuerySet
- func (q *QuerySet) Add(key string, value ...interface{}) *QuerySet
- func (q *QuerySet) Auto(c context, initquery ...interface{}) *QuerySet
- func (q *QuerySet) Auto2(c context, initquery ...interface{}) *QuerySet
- func (q *QuerySet) Between(key, left, right string)
- func (q *QuerySet) EQ(key string, value interface{}) *QuerySet
- func (q *QuerySet) Format() (w string, p []interface{}, other string)
- func (q *QuerySet) Format2() (w string, p []interface{}, other string)
- func (q *QuerySet) FormatCache(key string) (res string)
- func (q *QuerySet) FormatOther() (fs string)
- func (q *QuerySet) FormatOther2() (fs string)
- func (q *QuerySet) FormatWhere() (w string, p []interface{})
- func (q *QuerySet) FormatWhere2() (w string, p []interface{})
- func (q *QuerySet) GE(key string, value interface{}) *QuerySet
- func (q *QuerySet) GROUPBY(s string) *QuerySet
- func (q *QuerySet) GT(key string, value interface{}) *QuerySet
- func (q *QuerySet) HAVING(s string) *QuerySet
- func (q *QuerySet) IN(key string, value ...interface{}) *QuerySet
- func (q *QuerySet) Init(initquery ...interface{})
- func (q *QuerySet) LE(key string, value interface{}) *QuerySet
- func (q *QuerySet) LIMIT(i int) *QuerySet
- func (q *QuerySet) LT(key string, value interface{}) *QuerySet
- func (q *QuerySet) Like(key, value string) *QuerySet
- func (q *QuerySet) LikeLeft(key, value string) *QuerySet
- func (q *QuerySet) LikeRight(key, value string) *QuerySet
- func (q *QuerySet) NE(key string, value interface{}) *QuerySet
- func (q *QuerySet) OFFSET(i int) *QuerySet
- func (q *QuerySet) ORDERBY(s string) *QuerySet
- func (q *QuerySet) Paging(c context) *QuerySet
- func (q *QuerySet) Paging2(c context) *QuerySet
- func (q *QuerySet) ParseQuery(c context) *QuerySet
- func (q *QuerySet) ResetOther()
- func (q *QuerySet) Set(c context, querykey, key string)
- func (q *QuerySet) SetArray(c context, s ...string)
- func (q *QuerySet) SetBetween(c context, key, left, right string)
- func (q *QuerySet) SetInArray(c context, s ...string)
- func (q *QuerySet) SetLike(c context, querykey, key string)
- func (q *QuerySet) SetLikeArray(c context, s ...string)
- func (q *QuerySet) SetLikeL(c context, querykey, key string)
- func (q *QuerySet) SetLikeLArray(c context, s ...string)
- func (q *QuerySet) SetMap(c context, m map[string]string)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPageSize = 10
Functions ¶
This section is empty.
Types ¶
type QueryParse ¶
type QueryParse struct { IN map[string][]interface{} `json:"in"` GT map[string]interface{} `json:"gt"` EQ map[string]interface{} `json:"eq"` Like map[string]string `json:"like"` Time map[string][]string `json:"time"` LT map[string]interface{} `json:"lt"` NE map[string]interface{} `json:"ne"` GE map[string]interface{} `json:"ge"` LE map[string]interface{} `json:"le"` LikeL map[string]string `json:"like_l"` LikeR map[string]string `json:"like_r"` }
type QuerySet ¶
type QuerySet struct { Having string Offset int Limit int GroupBy string OrderBy string Select []string // contains filtered or unexported fields }
func (*QuerySet) FormatCache ¶
func (*QuerySet) FormatOther ¶
func (*QuerySet) FormatOther2 ¶
func (*QuerySet) FormatWhere ¶
func (*QuerySet) FormatWhere2 ¶
func (*QuerySet) ParseQuery ¶
func (*QuerySet) ResetOther ¶
func (q *QuerySet) ResetOther()
func (*QuerySet) SetBetween ¶
func (*QuerySet) SetInArray ¶
func (*QuerySet) SetLikeArray ¶
func (*QuerySet) SetLikeLArray ¶
Click to show internal directories.
Click to hide internal directories.