Jump to content

switch issue


Liquid Fire

Recommended Posts

I have a database class i am working on as part of my framework and have a small issue.  I am using the PDO object which helps a lot in making the database work with multiple database software easily however there a several function i have where i am going to need to do a switch of the database type and it seem that there should be a way then having this switch statement in each of these functions.  is there a way where i can extract that code so i do not have to rewrite it for every function that needs it.

Link to comment
https://forums.phpfreaks.com/topic/95898-switch-issue/
Share on other sites

well the common function i think are the same but what about the syntax for getting table information, seeing if a table exists, getting list of tables, getting primary key, getting relationships, getting indexes, adding/removing indexes, adding/removing relationships, tables, fields, etc...  hell i am not even sure if my insert/update statement are the same in all table as i have only every worked in mysql.  I just i need a way to see all the different common statements in the different database software.

Link to comment
https://forums.phpfreaks.com/topic/95898-switch-issue/#findComment-490975
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.