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) Desc() *Builder
- 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) *Builder
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶ added in v1.7.4
type Builder struct {
// contains filtered or unexported fields
}
Query 查询mysql数据库
func NewBuilder ¶ added in v1.7.4
NewBuilder new 实例
func (*Builder) BuildCount ¶ added in v1.7.4
func (*Builder) BuildFromNewBase ¶ added in v1.7.4
提供 base 替换 只提供条件语句 where, group, having
func (*Builder) BuildQuery ¶ added in v1.7.4
DEPRECEATED Build 组件SQL
func (*Builder) HavingArgs ¶ added in v1.7.4
func (b *Builder) HavingArgs() []interface{}
HavingArgs where 语句的参数
func (*Builder) HavingStmt ¶ added in v1.7.4
HavingStmt where条件列表
func (*Builder) WhereArgs ¶ added in v1.7.4
func (b *Builder) WhereArgs() []interface{}
WhereArgs where 语句的参数
func (*Builder) WithHaving ¶ added in v1.7.4
WithHaving 携带条件
Click to show internal directories.
Click to hide internal directories.