Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 4 branch should not use regex #45

Open
mattbucci opened this issue Nov 1, 2023 · 0 comments
Open

Version 4 branch should not use regex #45

mattbucci opened this issue Nov 1, 2023 · 0 comments

Comments

@mattbucci
Copy link
Collaborator

mattbucci commented Nov 1, 2023

Investigate the same approach as the WordPress SQLite implemention
https://github.com/phpmyadmin/sql-parser

https://wordpress.org/plugins/sqlite-database-integration/

Simplified structure regardless can look something like:

WPDB ->
monkey patched mySQL functions
-> parser / regex/ variable extraction
-> parsed MySQL representation (class or struct)
-> convert to Postgres representation
-> toSQL() method
-> execute against postgres database
<-- post process postgres output
<-- return data to WPDB

@mattbucci mattbucci pinned this issue Nov 7, 2023
@mattbucci mattbucci changed the title Version 3 branch should not use regex Version 4 branch should not use regex Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant