Documentation ¶
Index ¶
- func In(cond ...Builder) edb.Builder
- type Builder
- func And(cond ...Builder) Builder
- func Eq(column string, value interface{}, ok bool) Builder
- func Gt(column string, value interface{}, ok bool) Builder
- func Gte(column string, value interface{}, ok bool) Builder
- func Like(column, value string, ok bool, escape ...string) Builder
- func Lt(column string, value interface{}, ok bool) Builder
- func Lte(column string, value interface{}, ok bool) Builder
- func Neq(column string, value interface{}, ok bool) Builder
- func NotLike(column, value string, ok bool, escape ...string) Builder
- func Or(cond ...Builder) Builder
- type Builders
- type Func
- type GroupFunc
- type HavingFunc
- type WhereFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
func Eq ¶
Eq is `=`. When value is nil, it will be translated to `IS NULL`. When value is a slice, it will be translated to `IN`. Otherwise it will be translated to `=`.
func Neq ¶
Neq is `!=`. When value is nil, it will be translated to `IS NOT NULL`. When value is a slice, it will be translated to `NOT IN`. Otherwise it will be translated to `!=`.
type Builders ¶
type Builders struct {
Value []Builder
}
func NewBuilders ¶
func NewBuilders() *Builders
func (*Builders) ScanSelectBuilder ¶
func (b *Builders) ScanSelectBuilder(stmt edb.SelectBuilder)
ScanSelectBuilder 扫描Builder写入查询SQL语句
type HavingFunc ¶
Click to show internal directories.
Click to hide internal directories.