File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 11# sqlftw
2- Complete MySQL SQL dialect representation and SQL lexer and parser in PHP
2+ Complete MySQL SQL dialect lexer, parser and representation written in PHP
3+
4+ currently supports almost all SQL features up to MySQL 8.0.15
5+
6+ not yet supported features:
7+ - UNION
8+ - functions with named arguments
9+ - comments
10+ - optimizer hints
11+ - curly bracket literals ` {x expr} `
12+ - resolving operator precedence
13+
14+ main layers:
15+ - Lexer - * (ns: Parser\Lexer)* tokenizes SQL, returns array of parser Tokens
16+ - Parser(s) - validates syntax and returns a parsed Command
17+ - Command(s) - * (ns: SQL)* SQL command parsed from plaintext to object representation. can be serialized back to plaintext
18+ - Reflection - Database structure representation independent of actual SQL syntax ** (work in progress)**
19+
20+ platforms:
21+ - Platform - features supported by particular SQL implementation
22+ - Formatter - helper for configuring SQL serialisation
You can’t perform that action at this time.
0 commit comments