$_dbSchema = array(
'table1' => array(
'column1' => 'type',
'column2' => 'int',
'column3' => 'string',
),
'table2' => array(
'column1' => 'type',
'column2' => 'int',
'column3' => 'string',
),
);
Or just let you specify your table but that means adding more params to each function which kinda defeats the purpose of having helper functions in the first place.
Add some methods for common db CRUD functions, an example: https://github.com/MissAllSunday/Breeze/blob/develop/Sources/Breeze/BreezeQuery.php#L1089 of course way more generic. Perhaps adding a "db" property to specify your table schema:
Or just let you specify your table but that means adding more params to each function which kinda defeats the purpose of having helper functions in the first place.