Documentation ¶
Index ¶
- Variables
- func NewListener() *baseListener
- func Parse(stmt string) (*statement.Statement, error)
- type CaseChangingStream
- type ErrorListener
- type ExpressionTreeListener
- func (el *ExpressionTreeListener) AddNode(node *statement.ExpressionNode)
- func (el *ExpressionTreeListener) EnterBinaryComparisonPredicate(ctx *parser.BinaryComparisonPredicateContext)
- func (el ExpressionTreeListener) EnterInPredicate(ctx *parser.InPredicateContext)
- func (el *ExpressionTreeListener) EnterLogicalExpression(ctx *parser.LogicalExpressionContext)
- func (el *ExpressionTreeListener) EnterSimpleSelect(ctx *parser.SimpleSelectContext)
- func (el *ExpressionTreeListener) ExitLogicalExpression(ctx *parser.LogicalExpressionContext)
- func (el *ExpressionTreeListener) ExitSimpleSelect(ctx *parser.SimpleSelectContext)
- type FieldType
- type FieldTypeRegistry
- type Registry
Constants ¶
This section is empty.
Variables ¶
View Source
var ParameterIdentifier = "^\\?$"
Functions ¶
func NewListener ¶
func NewListener() *baseListener
Types ¶
type CaseChangingStream ¶
type CaseChangingStream struct { antlr.CharStream // contains filtered or unexported fields }
func NewCaseChangingStream ¶
func NewCaseChangingStream(in antlr.CharStream, upper bool) *CaseChangingStream
NewCaseChangingStream returns a new CaseChangingStream that forces all tokens read from the underlying stream to be either upper case or lower case based on the upper argument.
func (*CaseChangingStream) LA ¶
func (is *CaseChangingStream) LA(offset int) int
LA gets the value of the symbol at offset from the current position from the underlying CharStream and converts it to either upper case or lower case.
type ErrorListener ¶
type ErrorListener struct { *antlr.DefaultErrorListener // contains filtered or unexported fields }
func NewErrorListener ¶
func NewErrorListener() *ErrorListener
func (*ErrorListener) SyntaxError ¶
func (d *ErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, line, column int, msg string, e antlr.RecognitionException)
type ExpressionTreeListener ¶
type ExpressionTreeListener struct { *parser.BaseMySqlParserListener // contains filtered or unexported fields }
func NewExpressionTreeListener ¶
func NewExpressionTreeListener() *ExpressionTreeListener
func (*ExpressionTreeListener) AddNode ¶
func (el *ExpressionTreeListener) AddNode(node *statement.ExpressionNode)
func (*ExpressionTreeListener) EnterBinaryComparisonPredicate ¶
func (el *ExpressionTreeListener) EnterBinaryComparisonPredicate(ctx *parser.BinaryComparisonPredicateContext)
func (ExpressionTreeListener) EnterInPredicate ¶
func (el ExpressionTreeListener) EnterInPredicate(ctx *parser.InPredicateContext)
func (*ExpressionTreeListener) EnterLogicalExpression ¶
func (el *ExpressionTreeListener) EnterLogicalExpression(ctx *parser.LogicalExpressionContext)
func (*ExpressionTreeListener) EnterSimpleSelect ¶
func (el *ExpressionTreeListener) EnterSimpleSelect(ctx *parser.SimpleSelectContext)
func (*ExpressionTreeListener) ExitLogicalExpression ¶
func (el *ExpressionTreeListener) ExitLogicalExpression(ctx *parser.LogicalExpressionContext)
func (*ExpressionTreeListener) ExitSimpleSelect ¶
func (el *ExpressionTreeListener) ExitSimpleSelect(ctx *parser.SimpleSelectContext)
type FieldType ¶
type FieldType struct {
// contains filtered or unexported fields
}
func (*FieldType) GetCateg ¶
func (f *FieldType) GetCateg() statement.ColumnCateg
type FieldTypeRegistry ¶
func (*FieldTypeRegistry) GetByName ¶
func (ft *FieldTypeRegistry) GetByName(value string) *FieldType
type Registry ¶
type Registry struct {
FieldTypes *FieldTypeRegistry
}
func (*Registry) GetFieldTypes ¶
func (tr *Registry) GetFieldTypes() *FieldTypeRegistry
Click to show internal directories.
Click to hide internal directories.