sql-parser
https://github.com/phpmyadmin/sql-parser
PHP
A validating SQL lexer and parser with a focus on MySQL dialect.
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
PHP not yet supported3 Subscribers
Add a CodeTriage badge to sql-parser
Help out
- Issues
- Fix #655 - Missing space before UNION when building CREATE VIEW
- Missing space before UNION when building CREATE VIEW
- ELSE expressions terminate early when encountering an END token
- MariaDB and MySQL contexts
- Simplify ON keyword check to only needed case
- Fix #641 - Add VECTOR data type and VECTOR INDEX support
- Hex string literal x'...' incorrectly parsed as keyword + string
- Fix hex string literal (x'...') parsing in CREATE TABLE DEFAULT values
- Add REVOKE as known statement
- Fix parsing of backtick-enclosed table options
- Docs
- PHP not yet supported