Versions in this module Expand all Collapse all v0 v0.5.0 Feb 9, 2026 v0.3.0 Feb 7, 2026 Changes in this version + var SQLLexer = lexer.MustStateful(lexer.Rules{ ... }) + type BaseParser struct + func NewBaseParser(dialect grammars.Dialect) *BaseParser + func (b *BaseParser) Dialect() grammars.Dialect + func (b *BaseParser) Validate(sql string) ([]string, error) + type Column struct + Constraint string + Name string + Type string + type Constraint struct + Type string + type CreateTable struct + Columns []*Column + Keyword string + Name string + Table string + type DialectParser interface + Dialect func() grammars.Dialect + ParseDDL func(ctx context.Context, sql string) (*model.Catalog, error) + Validate func(sql string) ([]string, error) + func NewParser(dialect grammars.Dialect) (DialectParser, error) + type MySQLParser struct + func NewMySQLParser() (*MySQLParser, error) + func (m *MySQLParser) ParseDDL(_ context.Context, sql string) (*model.Catalog, error) + type PostgreSQLParser struct + func NewPostgreSQLParser() (*PostgreSQLParser, error) + func (p *PostgreSQLParser) ParseDDL(_ context.Context, sql string) (*model.Catalog, error) + type SQLiteParser struct + func NewSQLiteParser() (*SQLiteParser, error) + func (s *SQLiteParser) ParseDDL(_ context.Context, sql string) (*model.Catalog, error)