mindplay-dk / sql

Database framework and query builder
Other
18 stars 6 forks source link

Add support for schema-name #22

Closed mindplay-dk closed 7 years ago

mindplay-dk commented 8 years ago

We currently run the risk of table-name collisions between modules.

To address this, we should add support for (optional) schema-name to the Table model in mindplay/sql.

PostgreSQL should implement this using actual schema.

MySQL should implement this by prefixing table-names.

Most likely we'll need to change the signature of the quote() method in the Driver class to include an optional second $schema_name argument.

mindplay-dk commented 7 years ago

Have a preliminary integration-test branch with the setup required for tests for this feature.

mindplay-dk commented 7 years ago

Implemented in 0.7