Documentation ¶
Index ¶
- Variables
- type Operator
- type QuerySet
- type QuerySetImpl
- func (p *QuerySetImpl) FilterToSQL(filter map[string]interface{})
- func (p *QuerySetImpl) GetFilterSQL() (string, []interface{})
- func (p *QuerySetImpl) GetLimitSQL() string
- func (p *QuerySetImpl) GetOrderBySQL() string
- func (p *QuerySetImpl) LimitToSQL(pageSize, pageNum int)
- func (p *QuerySetImpl) OrderByToSQL(orderBy []string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AND2OR = []string{"AND", "OR"} NOT = []string{"", "NOT"} )
Functions ¶
This section is empty.
Types ¶
type QuerySetImpl ¶
type QuerySetImpl struct { Operator // contains filtered or unexported fields }
func NewQuerySet ¶
func NewQuerySet(op Operator) *QuerySetImpl
func (*QuerySetImpl) FilterToSQL ¶
func (p *QuerySetImpl) FilterToSQL(filter map[string]interface{})
func (*QuerySetImpl) GetFilterSQL ¶
func (p *QuerySetImpl) GetFilterSQL() (string, []interface{})
func (*QuerySetImpl) GetLimitSQL ¶
func (p *QuerySetImpl) GetLimitSQL() string
func (*QuerySetImpl) GetOrderBySQL ¶
func (p *QuerySetImpl) GetOrderBySQL() string
func (*QuerySetImpl) LimitToSQL ¶
func (p *QuerySetImpl) LimitToSQL(pageSize, pageNum int)
func (*QuerySetImpl) OrderByToSQL ¶
func (p *QuerySetImpl) OrderByToSQL(orderBy []string)
Click to show internal directories.
Click to hide internal directories.