Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This project is not covered by Drupal’s security advisory policy.
A basic SQL parser and converter in very early stages of development. Currently it takes a raw sql string and converts it into a DBTNG object string. At the moment it is pretty heavily MySQL specific, but there are plans to abstract it out to be SQL independent.
There is still a lot that needs to happen to make this usable:
- Lots and lots of code cleanup, especially in the SqlParser and SqlLexer classes.
- Simpletests
- Documentation
- Support for placeholders (they are parsed, but not converted)
- Support for converting drupal 6 query functions (e.g. db_query(), db_query_range(), etc) to DBTNG objects
- Add other database dialects besides MySQL
Development is actively taking place over at github: http://github.com/duellj/sql_parser
Project information
- Module categories: Developer Tools
- Created by duellj on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.