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 parsing of STORAGE ENGINE in partition definitions
- Fix quoted table options and add missing options in CREATE TABLE statement
- Bump GitHub actions
- Add support for MariaDB system-versioned tables and the SEQUENCE table option
- Fix parsing of table check constraints in CREATE TABLE
- Added parser SQL syntax check for invalid VARCHAR column definition.
- Added parser SQL syntax check for invalid VARCHAR column definition for v5.11.x.
- Invalid SQL syntax accepted: VARCHAR(X)
- Accept non-reserved keyword and quoted CTE names (#662)
- phpMyAdmin 5.2.3 export fails with RuntimeException: No statement inside WITH for views containing nested CTEs
- Docs
- PHP not yet supported