Documentation
      ¶
    
    
  
    
  
    Index ¶
- type Aliased
 - func (a *Aliased) End() token.Pos
 - func (a *Aliased) GetAliasedNameIdent() *Identifer
 - 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 Identifer
 - func (i *Identifer) End() token.Pos
 - func (i *Identifer) GetToken() *SQLToken
 - func (i *Identifer) IsWildcard() bool
 - func (i *Identifer) NoQuateString() string
 - func (i *Identifer) Pos() token.Pos
 - func (i *Identifer) Render(opts *RenderOptions) string
 - func (i *Identifer) String() string
 - func (i *Identifer) Type() NodeType
 
- type IdentiferList
 - func (il *IdentiferList) End() token.Pos
 - func (il *IdentiferList) GetIdentifers() []Node
 - func (il *IdentiferList) GetIndex(pos token.Pos) int
 - func (il *IdentiferList) GetTokens() []Node
 - func (il *IdentiferList) Pos() token.Pos
 - func (il *IdentiferList) Render(opts *RenderOptions) string
 - func (il *IdentiferList) SetTokens(toks []Node)
 - func (il *IdentiferList) String() string
 - func (il *IdentiferList) Type() NodeType
 
- type Item
 - type ItemWith
 - type MemberIdentifer
 - func (mi *MemberIdentifer) End() token.Pos
 - func (mi *MemberIdentifer) GetChild() Node
 - func (mi *MemberIdentifer) GetChildIdent() *Identifer
 - func (mi *MemberIdentifer) GetParent() Node
 - func (mi *MemberIdentifer) GetParentIdent() *Identifer
 - func (mi *MemberIdentifer) GetTokens() []Node
 - func (mi *MemberIdentifer) Pos() token.Pos
 - func (mi *MemberIdentifer) Render(opts *RenderOptions) string
 - func (mi *MemberIdentifer) SetTokens(toks []Node)
 - func (mi *MemberIdentifer) String() string
 - func (mi *MemberIdentifer) 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 (*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 Identifer ¶
type Identifer struct {
	Tok *SQLToken
}
    func (*Identifer) IsWildcard ¶
func (*Identifer) NoQuateString ¶
func (*Identifer) Render ¶
func (i *Identifer) Render(opts *RenderOptions) string
type IdentiferList ¶
func (*IdentiferList) End ¶
func (il *IdentiferList) End() token.Pos
func (*IdentiferList) GetIdentifers ¶
func (il *IdentiferList) GetIdentifers() []Node
func (*IdentiferList) GetTokens ¶
func (il *IdentiferList) GetTokens() []Node
func (*IdentiferList) Pos ¶
func (il *IdentiferList) Pos() token.Pos
func (*IdentiferList) Render ¶
func (il *IdentiferList) Render(opts *RenderOptions) string
func (*IdentiferList) SetTokens ¶
func (il *IdentiferList) SetTokens(toks []Node)
func (*IdentiferList) String ¶
func (il *IdentiferList) String() string
func (*IdentiferList) Type ¶
func (il *IdentiferList) 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 MemberIdentifer ¶
type MemberIdentifer struct {
	Toks        []Node
	Parent      Node
	ParentTok   *SQLToken
	ParentIdent *Identifer
	Child       Node
	ChildTok    *SQLToken
	ChildIdent  *Identifer
}
    func NewMemberIdentifer ¶
func NewMemberIdentifer(nodes []Node, parent Node, child Node) *MemberIdentifer
func NewMemberIdentiferParent ¶
func NewMemberIdentiferParent(nodes []Node, parent Node) *MemberIdentifer
func (*MemberIdentifer) End ¶
func (mi *MemberIdentifer) End() token.Pos
func (*MemberIdentifer) GetChild ¶
func (mi *MemberIdentifer) GetChild() Node
func (*MemberIdentifer) GetChildIdent ¶
func (mi *MemberIdentifer) GetChildIdent() *Identifer
func (*MemberIdentifer) GetParent ¶
func (mi *MemberIdentifer) GetParent() Node
func (*MemberIdentifer) GetParentIdent ¶
func (mi *MemberIdentifer) GetParentIdent() *Identifer
func (*MemberIdentifer) GetTokens ¶
func (mi *MemberIdentifer) GetTokens() []Node
func (*MemberIdentifer) Pos ¶
func (mi *MemberIdentifer) Pos() token.Pos
func (*MemberIdentifer) Render ¶
func (mi *MemberIdentifer) Render(opts *RenderOptions) string
func (*MemberIdentifer) SetTokens ¶
func (mi *MemberIdentifer) SetTokens(toks []Node)
func (*MemberIdentifer) String ¶
func (mi *MemberIdentifer) String() string
func (*MemberIdentifer) Type ¶
func (mi *MemberIdentifer) 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.