Versions in this module Expand all Collapse all v1 v1.0.5 Apr 17, 2022 Changes in this version + const Ip v1.0.4 Apr 17, 2022 Changes in this version + const BigInt + const Binary + const Bit + const Blob + const Bool + const Boolean + const Char + const Character + const Date + const DateTime + const Dec + const Decimal + const Double + const Enum + const Fixed + const Float + const Float4 + const Float8 + const GeomCollection + const Geometry + const GeometryCollection + const Int + const Int1 + const Int2 + const Int3 + const Int4 + const Int8 + const Integer + const Json + const LineString + const LongBlob + const LongText + const LongVarBinary + const LongVarChar + const MediumBlob + const MediumInt + const MediumText + const MiddleInt + const Money + const MultiLineString + const MultiPoint + const MultiPolygon + const NChar + const NVarChar + const Numeric + const Point + const Polygon + const Real + const Serial + const Set + const SmallInt + const Text + const Time + const Timestamp + const TinyBlob + const TinyInt + const TinyText + const VarBinary + const VarChar + const Year + type Acceptor func(p *gen.MySqlParser, visitor *visitor) interface + type CaseChangingStream struct + func (is *CaseChangingStream) LA(offset int) int + type Column struct + Constraint *ColumnConstraint + DataType DataType + Name string + type ColumnConstraint struct + AutoIncrement bool + Comment string + HasDefaultValue bool + Key bool + NotNull bool + Primary bool + Unique bool + type ColumnDeclaration struct + ColumnDefinition *ColumnDefinition + Name string + type ColumnDefinition struct + ColumnConstraint *ColumnConstraint + DataType DataType + type CreateTable struct + Columns []*ColumnDeclaration + Constraints []*TableConstraint + Name string + func (c *CreateTable) Convert() *Table + type DataType interface + Type func() int + Value func() []string + type EnumSetDataType struct + func (e *EnumSetDataType) Type() int + func (e *EnumSetDataType) Value() []string + type NormalDataType struct + func (n *NormalDataType) Type() int + func (n *NormalDataType) Value() []string + type Option func(p *Parser) + func WithConsole(logger console.Console) Option + func WithDebugMode(debug bool) Option + type Parser struct + func NewParser(options ...Option) *Parser + func (p *Parser) From(filename string) (ret []*Table, err error) + func (p *Parser) SyntaxError(_ antlr.Recognizer, _ interface{}, line, column int, msg string, ...) + type Table struct + Columns []*Column + Constraints []*TableConstraint + Name string + type TableConstraint struct + ColumnPrimaryKey []string + ColumnUniqueKey []string + type Token interface + GetColumn func() int + GetLine func() int + GetText func() string + SetText func(s string)