Documentation
¶
Index ¶
- type Aliased
- func (a *Aliased) End() token.Pos
- func (a *Aliased) GetAliasedNameIdent() *Identifier
- func (a *Aliased) GetTokens() []Node
- func (a *Aliased) Pos() token.Pos
- func (a *Aliased) Render(opts *RenderOptions) string
- func (a *Aliased) SetTokens(toks []Node)
- func (a *Aliased) String() string
- func (a *Aliased) Type() NodeType
- type Comparison
- func (c *Comparison) End() token.Pos
- func (c *Comparison) GetComparison() Node
- func (c *Comparison) GetLeft() Node
- func (c *Comparison) GetRight() Node
- func (c *Comparison) GetTokens() []Node
- func (c *Comparison) Pos() token.Pos
- func (c *Comparison) Render(opts *RenderOptions) string
- func (c *Comparison) SetTokens(toks []Node)
- func (c *Comparison) String() string
- func (c *Comparison) Type() NodeType
- type FunctionLiteral
- func (fl *FunctionLiteral) End() token.Pos
- func (fl *FunctionLiteral) GetTokens() []Node
- func (fl *FunctionLiteral) Pos() token.Pos
- func (fl *FunctionLiteral) Render(opts *RenderOptions) string
- func (fl *FunctionLiteral) SetTokens(toks []Node)
- func (fl *FunctionLiteral) String() string
- func (fl *FunctionLiteral) Type() NodeType
- type Identifier
- func (i *Identifier) End() token.Pos
- func (i *Identifier) GetToken() *SQLToken
- func (i *Identifier) IsWildcard() bool
- func (i *Identifier) NoQuateString() string
- func (i *Identifier) Pos() token.Pos
- func (i *Identifier) Render(opts *RenderOptions) string
- func (i *Identifier) String() string
- func (i *Identifier) Type() NodeType
- type IdentifierList
- func (il *IdentifierList) End() token.Pos
- func (il *IdentifierList) GetIdentifiers() []Node
- func (il *IdentifierList) GetIndex(pos token.Pos) int
- func (il *IdentifierList) GetTokens() []Node
- func (il *IdentifierList) Pos() token.Pos
- func (il *IdentifierList) Render(opts *RenderOptions) string
- func (il *IdentifierList) SetTokens(toks []Node)
- func (il *IdentifierList) String() string
- func (il *IdentifierList) Type() NodeType
- type Item
- type ItemWith
- type MemberIdentifier
- func (mi *MemberIdentifier) End() token.Pos
- func (mi *MemberIdentifier) GetChild() Node
- func (mi *MemberIdentifier) GetChildIdent() *Identifier
- func (mi *MemberIdentifier) GetParent() Node
- func (mi *MemberIdentifier) GetParentIdent() *Identifier
- func (mi *MemberIdentifier) GetTokens() []Node
- func (mi *MemberIdentifier) Pos() token.Pos
- func (mi *MemberIdentifier) Render(opts *RenderOptions) string
- func (mi *MemberIdentifier) SetTokens(toks []Node)
- func (mi *MemberIdentifier) String() string
- func (mi *MemberIdentifier) Type() NodeType
- type MultiKeyword
- func (mk *MultiKeyword) End() token.Pos
- func (mk *MultiKeyword) GetKeywords() []Node
- func (mk *MultiKeyword) GetTokens() []Node
- func (mk *MultiKeyword) Pos() token.Pos
- func (mk *MultiKeyword) Render(opts *RenderOptions) string
- func (mk *MultiKeyword) SetTokens(toks []Node)
- func (mk *MultiKeyword) String() string
- func (mk *MultiKeyword) Type() NodeType
- type Node
- type NodeType
- type Null
- type Operator
- func (o *Operator) End() token.Pos
- func (o *Operator) GetLeft() Node
- func (o *Operator) GetOperator() Node
- func (o *Operator) GetRight() Node
- func (o *Operator) GetTokens() []Node
- func (o *Operator) Pos() token.Pos
- func (o *Operator) Render(opts *RenderOptions) string
- func (o *Operator) SetTokens(toks []Node)
- func (o *Operator) String() string
- func (o *Operator) Type() NodeType
- type Parenthesis
- func (p *Parenthesis) End() token.Pos
- func (p *Parenthesis) GetTokens() []Node
- func (p *Parenthesis) Inner() TokenList
- func (p *Parenthesis) Pos() token.Pos
- func (p *Parenthesis) Render(opts *RenderOptions) string
- func (p *Parenthesis) SetTokens(toks []Node)
- func (p *Parenthesis) String() string
- func (p *Parenthesis) Type() NodeType
- type ParenthesisInner
- func (p *ParenthesisInner) End() token.Pos
- func (p *ParenthesisInner) GetTokens() []Node
- func (p *ParenthesisInner) Pos() token.Pos
- func (p *ParenthesisInner) Render(opts *RenderOptions) string
- func (p *ParenthesisInner) SetTokens(toks []Node)
- func (p *ParenthesisInner) String() string
- func (p *ParenthesisInner) Type() NodeType
- type Query
- type RenderOptions
- type SQLToken
- func (t *SQLToken) MatchKind(expect token.Kind) bool
- func (t *SQLToken) MatchSQLKeyword(expect string) bool
- func (t *SQLToken) MatchSQLKeywords(expects []string) bool
- func (t *SQLToken) MatchSQLKind(expect dialect.KeywordKind) bool
- func (t *SQLToken) NoQuateString() string
- func (t *SQLToken) Render(opts *RenderOptions) string
- func (t *SQLToken) String() string
- type Statement
- type SwitchCase
- type Token
- type TokenList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aliased ¶
func (*Aliased) GetAliasedNameIdent ¶
func (a *Aliased) GetAliasedNameIdent() *Identifier
func (*Aliased) Render ¶
func (a *Aliased) Render(opts *RenderOptions) string
type Comparison ¶
func (*Comparison) End ¶
func (c *Comparison) End() token.Pos
func (*Comparison) GetComparison ¶
func (c *Comparison) GetComparison() Node
func (*Comparison) GetLeft ¶
func (c *Comparison) GetLeft() Node
func (*Comparison) GetRight ¶
func (c *Comparison) GetRight() Node
func (*Comparison) GetTokens ¶
func (c *Comparison) GetTokens() []Node
func (*Comparison) Pos ¶
func (c *Comparison) Pos() token.Pos
func (*Comparison) Render ¶
func (c *Comparison) Render(opts *RenderOptions) string
func (*Comparison) SetTokens ¶
func (c *Comparison) SetTokens(toks []Node)
func (*Comparison) String ¶
func (c *Comparison) String() string
func (*Comparison) Type ¶
func (c *Comparison) Type() NodeType
type FunctionLiteral ¶
type FunctionLiteral struct {
Toks []Node
}
func (*FunctionLiteral) End ¶
func (fl *FunctionLiteral) End() token.Pos
func (*FunctionLiteral) GetTokens ¶
func (fl *FunctionLiteral) GetTokens() []Node
func (*FunctionLiteral) Pos ¶
func (fl *FunctionLiteral) Pos() token.Pos
func (*FunctionLiteral) Render ¶
func (fl *FunctionLiteral) Render(opts *RenderOptions) string
func (*FunctionLiteral) SetTokens ¶
func (fl *FunctionLiteral) SetTokens(toks []Node)
func (*FunctionLiteral) String ¶
func (fl *FunctionLiteral) String() string
func (*FunctionLiteral) Type ¶
func (fl *FunctionLiteral) Type() NodeType
type Identifier ¶
type Identifier struct {
Tok *SQLToken
}
func (*Identifier) End ¶
func (i *Identifier) End() token.Pos
func (*Identifier) GetToken ¶
func (i *Identifier) GetToken() *SQLToken
func (*Identifier) IsWildcard ¶
func (i *Identifier) IsWildcard() bool
func (*Identifier) NoQuateString ¶
func (i *Identifier) NoQuateString() string
func (*Identifier) Pos ¶
func (i *Identifier) Pos() token.Pos
func (*Identifier) Render ¶
func (i *Identifier) Render(opts *RenderOptions) string
func (*Identifier) String ¶
func (i *Identifier) String() string
func (*Identifier) Type ¶
func (i *Identifier) Type() NodeType
type IdentifierList ¶
func (*IdentifierList) End ¶
func (il *IdentifierList) End() token.Pos
func (*IdentifierList) GetIdentifiers ¶
func (il *IdentifierList) GetIdentifiers() []Node
func (*IdentifierList) GetTokens ¶
func (il *IdentifierList) GetTokens() []Node
func (*IdentifierList) Pos ¶
func (il *IdentifierList) Pos() token.Pos
func (*IdentifierList) Render ¶
func (il *IdentifierList) Render(opts *RenderOptions) string
func (*IdentifierList) SetTokens ¶
func (il *IdentifierList) SetTokens(toks []Node)
func (*IdentifierList) String ¶
func (il *IdentifierList) String() string
func (*IdentifierList) Type ¶
func (il *IdentifierList) Type() NodeType
type Item ¶
type Item struct {
Tok *SQLToken
}
func (*Item) NoQuateString ¶
func (*Item) Render ¶
func (i *Item) Render(opts *RenderOptions) string
type ItemWith ¶
type ItemWith struct {
Toks []Node
}
func (*ItemWith) Render ¶
func (iw *ItemWith) Render(opts *RenderOptions) string
type MemberIdentifier ¶
type MemberIdentifier struct {
Toks []Node
Parent Node
ParentTok *SQLToken
ParentIdent *Identifier
Child Node
ChildTok *SQLToken
ChildIdent *Identifier
}
func NewMemberIdentifier ¶
func NewMemberIdentifier(nodes []Node, parent Node, child Node) *MemberIdentifier
func NewMemberIdentifierParent ¶
func NewMemberIdentifierParent(nodes []Node, parent Node) *MemberIdentifier
func (*MemberIdentifier) End ¶
func (mi *MemberIdentifier) End() token.Pos
func (*MemberIdentifier) GetChild ¶
func (mi *MemberIdentifier) GetChild() Node
func (*MemberIdentifier) GetChildIdent ¶
func (mi *MemberIdentifier) GetChildIdent() *Identifier
func (*MemberIdentifier) GetParent ¶
func (mi *MemberIdentifier) GetParent() Node
func (*MemberIdentifier) GetParentIdent ¶
func (mi *MemberIdentifier) GetParentIdent() *Identifier
func (*MemberIdentifier) GetTokens ¶
func (mi *MemberIdentifier) GetTokens() []Node
func (*MemberIdentifier) Pos ¶
func (mi *MemberIdentifier) Pos() token.Pos
func (*MemberIdentifier) Render ¶
func (mi *MemberIdentifier) Render(opts *RenderOptions) string
func (*MemberIdentifier) SetTokens ¶
func (mi *MemberIdentifier) SetTokens(toks []Node)
func (*MemberIdentifier) String ¶
func (mi *MemberIdentifier) String() string
func (*MemberIdentifier) Type ¶
func (mi *MemberIdentifier) Type() NodeType
type MultiKeyword ¶
func (*MultiKeyword) End ¶
func (mk *MultiKeyword) End() token.Pos
func (*MultiKeyword) GetKeywords ¶
func (mk *MultiKeyword) GetKeywords() []Node
func (*MultiKeyword) GetTokens ¶
func (mk *MultiKeyword) GetTokens() []Node
func (*MultiKeyword) Pos ¶
func (mk *MultiKeyword) Pos() token.Pos
func (*MultiKeyword) Render ¶
func (mk *MultiKeyword) Render(opts *RenderOptions) string
func (*MultiKeyword) SetTokens ¶
func (mk *MultiKeyword) SetTokens(toks []Node)
func (*MultiKeyword) String ¶
func (mk *MultiKeyword) String() string
func (*MultiKeyword) Type ¶
func (mk *MultiKeyword) Type() NodeType
type Node ¶
type Null ¶
type Null struct{}
func (*Null) Render ¶
func (n *Null) Render(opts *RenderOptions) string
type Operator ¶
func (*Operator) GetOperator ¶
func (*Operator) Render ¶
func (o *Operator) Render(opts *RenderOptions) string
type Parenthesis ¶
type Parenthesis struct {
Toks []Node
}
func (*Parenthesis) End ¶
func (p *Parenthesis) End() token.Pos
func (*Parenthesis) GetTokens ¶
func (p *Parenthesis) GetTokens() []Node
func (*Parenthesis) Inner ¶
func (p *Parenthesis) Inner() TokenList
func (*Parenthesis) Pos ¶
func (p *Parenthesis) Pos() token.Pos
func (*Parenthesis) Render ¶
func (p *Parenthesis) Render(opts *RenderOptions) string
func (*Parenthesis) SetTokens ¶
func (p *Parenthesis) SetTokens(toks []Node)
func (*Parenthesis) String ¶
func (p *Parenthesis) String() string
func (*Parenthesis) Type ¶
func (p *Parenthesis) Type() NodeType
type ParenthesisInner ¶
type ParenthesisInner struct {
Toks []Node
}
func (*ParenthesisInner) End ¶
func (p *ParenthesisInner) End() token.Pos
func (*ParenthesisInner) GetTokens ¶
func (p *ParenthesisInner) GetTokens() []Node
func (*ParenthesisInner) Pos ¶
func (p *ParenthesisInner) Pos() token.Pos
func (*ParenthesisInner) Render ¶
func (p *ParenthesisInner) Render(opts *RenderOptions) string
func (*ParenthesisInner) SetTokens ¶
func (p *ParenthesisInner) SetTokens(toks []Node)
func (*ParenthesisInner) String ¶
func (p *ParenthesisInner) String() string
func (*ParenthesisInner) Type ¶
func (p *ParenthesisInner) Type() NodeType
type Query ¶
type Query struct {
Toks []Node
}
func (*Query) Render ¶
func (q *Query) Render(opts *RenderOptions) string
type RenderOptions ¶
type SQLToken ¶
func NewSQLToken ¶
func (*SQLToken) MatchSQLKeyword ¶
func (*SQLToken) MatchSQLKeywords ¶
func (*SQLToken) MatchSQLKind ¶
func (t *SQLToken) MatchSQLKind(expect dialect.KeywordKind) bool
func (*SQLToken) NoQuateString ¶
func (*SQLToken) Render ¶
func (t *SQLToken) Render(opts *RenderOptions) string
type Statement ¶
type Statement struct {
Toks []Node
}
func (*Statement) Render ¶
func (s *Statement) Render(opts *RenderOptions) string
type SwitchCase ¶
type SwitchCase struct {
Toks []Node
}
func (*SwitchCase) End ¶
func (sc *SwitchCase) End() token.Pos
func (*SwitchCase) GetTokens ¶
func (sc *SwitchCase) GetTokens() []Node
func (*SwitchCase) Pos ¶
func (sc *SwitchCase) Pos() token.Pos
func (*SwitchCase) Render ¶
func (sc *SwitchCase) Render(opts *RenderOptions) string
func (*SwitchCase) SetTokens ¶
func (sc *SwitchCase) SetTokens(toks []Node)
func (*SwitchCase) String ¶
func (sc *SwitchCase) String() string
func (*SwitchCase) Type ¶
func (sc *SwitchCase) Type() NodeType
Click to show internal directories.
Click to hide internal directories.