Documentation ¶
Index ¶
- Constants
- type AliasClause
- type AliasedSelect
- type AliasedTable
- type AndExpr
- type BetweenExpr
- type ColunmName
- type ColunmNameList
- type Direction
- type DivExpr
- type EqExpr
- type ExprStatement
- type ExprStatements
- type From
- type Ftop
- type FuncExpr
- type GeExpr
- type GroupBy
- type GtExpr
- type Index
- type IsNotNullExpr
- type IsNullExpr
- type JoinClause
- type JoinCond
- type JoinType
- type LeExpr
- type Limit
- type LtExpr
- type MinusExpr
- type ModExpr
- type MultExpr
- type Name
- type NameList
- type NeExpr
- type NonJoinCond
- type NotBetweenExpr
- type NotExpr
- type OnJoinCond
- type OrExpr
- type Order
- type OrderBy
- type OrderStatement
- type ParenExpr
- type PlusExpr
- type RelationStatement
- type Select
- type SelectClause
- type SelectExpr
- type SelectExprs
- type Statement
- type Subquery
- type TableName
- type TableStatement
- type TableStatements
- type Top
- type UnaryMinusExpr
- type UnionClause
- type UnionType
- type Value
- type Where
Constants ¶
View Source
const ( AstWhere = "WHERE" AstHaving = "HAVING" )
Where.Type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliasClause ¶
func (*AliasClause) String ¶
func (n *AliasClause) String() string
type AliasedSelect ¶
type AliasedSelect struct { Sel *Select As *AliasClause }
func (*AliasedSelect) String ¶
func (n *AliasedSelect) String() string
type AliasedTable ¶
type AliasedTable struct { As *AliasClause Tbl TableStatement }
func (*AliasedTable) String ¶
func (n *AliasedTable) String() string
type AndExpr ¶
type AndExpr struct {
Left, Right ExprStatement
}
type BetweenExpr ¶
type BetweenExpr struct { E ExprStatement From, To ExprStatement }
func (*BetweenExpr) String ¶
func (e *BetweenExpr) String() string
type ColunmName ¶
type ColunmName struct { Path Name Index ExprStatement }
func (ColunmName) String ¶
func (n ColunmName) String() string
type ColunmNameList ¶
type ColunmNameList []ColunmName
func (ColunmNameList) String ¶
func (n ColunmNameList) String() string
type DivExpr ¶
type DivExpr struct {
Left, Right ExprStatement
}
type EqExpr ¶
type EqExpr struct {
Left, Right ExprStatement
}
type ExprStatement ¶
type ExprStatement interface { Statement // contains filtered or unexported methods }
type ExprStatements ¶
type ExprStatements []ExprStatement
func (ExprStatements) String ¶
func (es ExprStatements) String() string
type From ¶
type From struct {
Tables TableStatements
}
type Ftop ¶
type Ftop struct {
N ExprStatement
}
type FuncExpr ¶
type FuncExpr struct { Name string Es ExprStatements }
type GeExpr ¶
type GeExpr struct {
Left, Right ExprStatement
}
type GroupBy ¶
type GroupBy struct {
Es ExprStatements
}
type GtExpr ¶
type GtExpr struct {
Left, Right ExprStatement
}
type IsNotNullExpr ¶
type IsNotNullExpr struct {
E ExprStatement
}
func (*IsNotNullExpr) String ¶
func (e *IsNotNullExpr) String() string
type IsNullExpr ¶
type IsNullExpr struct {
E ExprStatement
}
func (*IsNullExpr) String ¶
func (e *IsNullExpr) String() string
type JoinClause ¶
type JoinClause struct { Type JoinType Cond JoinCond Left, Right RelationStatement }
func (*JoinClause) String ¶
func (n *JoinClause) String() string
type JoinCond ¶
type JoinCond interface { Statement // contains filtered or unexported methods }
JoinCond represents a join condition.
type LeExpr ¶
type LeExpr struct {
Left, Right ExprStatement
}
type Limit ¶
type Limit struct {
Offset, Count ExprStatement
}
type LtExpr ¶
type LtExpr struct {
Left, Right ExprStatement
}
type MinusExpr ¶
type MinusExpr struct {
Left, Right ExprStatement
}
type ModExpr ¶
type ModExpr struct {
Left, Right ExprStatement
}
type MultExpr ¶
type MultExpr struct {
Left, Right ExprStatement
}
type NeExpr ¶
type NeExpr struct {
Left, Right ExprStatement
}
type NonJoinCond ¶
type NonJoinCond struct { }
func (*NonJoinCond) String ¶
func (n *NonJoinCond) String() string
type NotBetweenExpr ¶
type NotBetweenExpr struct { E ExprStatement From, To ExprStatement }
func (*NotBetweenExpr) String ¶
func (e *NotBetweenExpr) String() string
type NotExpr ¶
type NotExpr struct {
E ExprStatement
}
type OnJoinCond ¶
type OnJoinCond struct {
E ExprStatement
}
OnJoinCond represents an ON join condition.
func (*OnJoinCond) String ¶
func (n *OnJoinCond) String() string
type OrExpr ¶
type OrExpr struct {
Left, Right ExprStatement
}
type Order ¶
type Order struct { Type Direction E ExprStatement }
type OrderStatement ¶
type OrderStatement interface { Statement // contains filtered or unexported methods }
type ParenExpr ¶
type ParenExpr struct {
E ExprStatement
}
type PlusExpr ¶
type PlusExpr struct {
Left, Right ExprStatement
}
type RelationStatement ¶
type RelationStatement interface { Statement // contains filtered or unexported methods }
type Select ¶
type Select struct { Limit *Limit Order OrderStatement Relation RelationStatement }
type SelectClause ¶
type SelectClause struct { Distinct bool From *From Where *Where Having *Where GroupBy *GroupBy Sel SelectExprs }
func (*SelectClause) String ¶
func (n *SelectClause) String() string
type SelectExpr ¶
type SelectExpr struct { As Name E ExprStatement }
func (*SelectExpr) String ¶
func (n *SelectExpr) String() string
type SelectExprs ¶
type SelectExprs []*SelectExpr
func (SelectExprs) String ¶
func (n SelectExprs) String() string
type TableName ¶
type TableName struct {
N ColunmNameList
}
type TableStatement ¶
type TableStatement interface { Statement // contains filtered or unexported methods }
type TableStatements ¶
type TableStatements []TableStatement
func (TableStatements) String ¶
func (n TableStatements) String() string
type UnaryMinusExpr ¶
type UnaryMinusExpr struct {
E ExprStatement
}
func (*UnaryMinusExpr) String ¶
func (e *UnaryMinusExpr) String() string
type UnionClause ¶
type UnionClause struct { All bool Type UnionType Left, Right RelationStatement }
func (*UnionClause) String ¶
func (n *UnionClause) String() string
Click to show internal directories.
Click to hide internal directories.