Documentation ¶
Index ¶
- func And(lhs, rhs spansql.BoolExpr) spansql.BoolExpr
- func Between(lhs, rhs1, rhs2 interface{}) spansql.BoolExpr
- func Eq(lhs, rhs interface{}) spansql.BoolExpr
- func Ge(lhs, rhs interface{}) spansql.BoolExpr
- func Gt(lhs, rhs interface{}) spansql.BoolExpr
- func Le(lhs, rhs interface{}) spansql.BoolExpr
- func Like(lhs, rhs interface{}) spansql.BoolExpr
- func Lt(lhs, rhs interface{}) spansql.BoolExpr
- func Ne(lhs, rhs interface{}) spansql.BoolExpr
- func NotBetween(lhs, rhs1, rhs2 interface{}) spansql.BoolExpr
- func NotLike(lhs, rhs interface{}) spansql.BoolExpr
- func Or(lhs, rhs spansql.BoolExpr) spansql.BoolExpr
- type Expr
- type FromOption
- type FromOptionAs
- type FromOptionHint
- type ID
- type QueryBuilder
- func (q QueryBuilder) From(table string, opts ...FromOption) QueryBuilder
- func (q QueryBuilder) GroupBy(expr ...spansql.Expr) QueryBuilder
- func (q QueryBuilder) InnerJoin(table string, on spansql.BoolExpr) QueryBuilder
- func (q QueryBuilder) LeftOuterJoin(table string, on spansql.BoolExpr) QueryBuilder
- func (q QueryBuilder) RightOuterJoin(table string, on spansql.BoolExpr) QueryBuilder
- func (q QueryBuilder) SQL() string
- func (q QueryBuilder) Select(cols ...interface{}) QueryBuilder
- func (q QueryBuilder) Where(expr spansql.BoolExpr) QueryBuilder
- type Str
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NotBetween ¶
Types ¶
type FromOption ¶
type FromOption interface {
// contains filtered or unexported methods
}
func As ¶
func As(alias string) FromOption
type FromOptionAs ¶
type FromOptionAs struct {
Alias string
}
type FromOptionHint ¶
type QueryBuilder ¶
type QueryBuilder struct {
// contains filtered or unexported fields
}
func Query ¶
func Query() QueryBuilder
func (QueryBuilder) From ¶
func (q QueryBuilder) From(table string, opts ...FromOption) QueryBuilder
func (QueryBuilder) GroupBy ¶
func (q QueryBuilder) GroupBy(expr ...spansql.Expr) QueryBuilder
func (QueryBuilder) InnerJoin ¶
func (q QueryBuilder) InnerJoin(table string, on spansql.BoolExpr) QueryBuilder
func (QueryBuilder) LeftOuterJoin ¶
func (q QueryBuilder) LeftOuterJoin(table string, on spansql.BoolExpr) QueryBuilder
func (QueryBuilder) RightOuterJoin ¶
func (q QueryBuilder) RightOuterJoin(table string, on spansql.BoolExpr) QueryBuilder
func (QueryBuilder) SQL ¶
func (q QueryBuilder) SQL() string
func (QueryBuilder) Select ¶
func (q QueryBuilder) Select(cols ...interface{}) QueryBuilder
func (QueryBuilder) Where ¶
func (q QueryBuilder) Where(expr spansql.BoolExpr) QueryBuilder
Click to show internal directories.
Click to hide internal directories.