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
- Dual licensing: LGPL-2.0-or-later/GPL-2.0-or-later
- Support `TABLE` statements
- Unrecognized keyword and Unrecognized alter operation
- Unexpected token because of missing space
- Support for special syntaxes for example in SQL_MODE='ORACLE'
- The license of this package is 'viral'
- Syntax error with row_number alias
- WITH...AS parse errors
- Missing data in contexts for MariaDB
- Condition could have more detailed fields
- Docs
- PHP not yet supported