Full support for the MySQL dialect for the following statement types
- SELECT
- INSERT
- UPDATE
- DELETE
- REPLACE
via php-sql-parser
Targeting MySQL syntax is a reasonable trade off. It appears to handle reasonably complex queries as well.
I’m going to keep this link handy, I’ve got a feeling there are some fun (and perhaps twisted) ways to make use of this.