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

Table name replacer #10

Closed darkain closed 3 years ago

darkain commented 4 years ago

Currently we have a key/value pair to replace table prefixes. Instead, let's replace it with a callback method that can be hooked into, so the application can instead perform the replacement logic, allowing for far greater control over table names.

This will allow for better per-application conditionals, business logic, and support for altering other parts of the table name besides just the prefix. This will allow for aliasing, suffixes, or any logic a developer may need.

darkain commented 3 years ago

Feature added in: https://github.com/darkain/pudl/commit/06e30e812f3f3750ef3c4105eb6140dc770d38ad