Documentation ¶
Index ¶
- type Query
- func (q *Query) Build() (stmt string, args []interface{})
- func (q *Query) Desc() *Query
- func (q *Query) GroupBy(d string) *Query
- func (q *Query) Having(stmt string, v ...interface{}) *Query
- func (q *Query) HavingArgs() []interface{}
- func (q *Query) HavingStmt() []string
- func (q *Query) Limit(offset int64, limit uint) *Query
- func (q *Query) Order(d string) *Query
- func (q *Query) Where(stmt string, v ...interface{}) *Query
- func (q *Query) WhereArgs() []interface{}
- func (q *Query) WhereStmt() []string
- func (q *Query) WithHaving(stmts []string, args []interface{}) *Query
- func (q *Query) WithWhere(stmts []string, args []interface{}) *Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
Query 查询mysql数据库
func (*Query) HavingArgs ¶ added in v0.3.5
func (q *Query) HavingArgs() []interface{}
HavingArgs where 语句的参数
func (*Query) HavingStmt ¶ added in v0.3.5
HavingStmt where条件列表
func (*Query) WithHaving ¶ added in v0.3.5
WithHaving 携带条件
Click to show internal directories.
Click to hide internal directories.