Documentation ¶
Index ¶
- type Builder
- func (b *Builder) Build() (stmt string, args []interface{})
- func (b *Builder) BuildCount() (stmt string, args []interface{})
- func (b *Builder) BuildFromNewBase(base string) (stmt string, args []interface{})
- func (b *Builder) BuildQuery() (stmt string, args []interface{})
- func (b *Builder) GroupBy(d string) *Builder
- func (b *Builder) Having(stmt string, v ...interface{}) *Builder
- func (b *Builder) HavingArgs() []interface{}
- func (b *Builder) HavingStmt() []string
- func (b *Builder) LeftJoin(j string) *JoinStmt
- func (b *Builder) Limit(offset int64, limit uint) *Builder
- func (b *Builder) Order(d string) *OrderStmt
- func (b *Builder) RightJoin(j string) *JoinStmt
- func (b *Builder) Set(stmt string, v ...interface{}) *Builder
- func (b *Builder) Where(stmt string, v ...interface{}) *Builder
- func (b *Builder) WhereArgs() []interface{}
- func (b *Builder) WhereStmt() []string
- func (b *Builder) WithHaving(stmts []string, args []interface{}) *Builder
- func (b *Builder) WithWhere(stmts []string, args []interface{}) *Builder
- type JoinStmt
- type OrderStmt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Query 查询mysql数据库
func (*Builder) BuildCount ¶
func (*Builder) BuildFromNewBase ¶
提供 base 替换 只提供条件语句 where, group, having
func (*Builder) BuildQuery ¶
DEPRECEATED Build 组件SQL
func (*Builder) WithHaving ¶
WithHaving 携带条件
Click to show internal directories.
Click to hide internal directories.