darkain / pudl

PHP Universal Database Library - connects to and generates queries for SQL Servers
BSD 2-Clause "Simplified" License
28 stars 5 forks source link

Decouple query generator from execution #8

Open darkain opened 5 years ago

darkain commented 5 years ago

Decouple the PUDL query generator from the PUDL execution unit.

This task will not be done for quite some time, this is a post 3.0 task.

PDO, ODBC, and the various execution proxies can all support a wide variety of SQL servers. Having the query generator for a specific engine tied to a specific execution unit means that potential options for users are being locked out.

The main standard API and instantiation for MySQL, PostgreSQL, SQL Server, and SQLite will remain unchanged. Each of these execution units will default to their proper query generators.

pudlNull will accept any query generator for debug purposes.

PDO, ODBC, and Proxies will have an additional (required?) parameter to specify which generator they wish to use.

darkain commented 2 years ago

Execution unit and connection manager should also be split, so any connection type can inherently support clustering and read/write splitting.