mysql

package
v0.0.0-...-bbac96e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ParameterIdentifier = "^\\?$"

Functions

func NewListener

func NewListener() *baseListener

func Parse

func Parse(stmt string) (*statement.Statement, error)

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

func (*FieldType) GetName

func (f *FieldType) GetName() string

type FieldTypeRegistry

type FieldTypeRegistry map[string]*FieldType

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL