RE: [PHP-DB] Cross DB application

From: Date: Mon, 15 Apr 2002 16:39:05 +0000
Subject: RE: [PHP-DB] Cross DB application
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-18515@lists.php.net to get a copy of this message
Hi Arcadius, If you know Object-oriented programming , you can write a class that includes both MySQL and PostGreSQL functions and you can inherit from that class. Or, you can just stick all mysql, postgresql functions in a functions.php file and include that file to be able to use the functions. I guess it would work best if you have a configuration file where the user chooses either DB and your code uses the corresponding function for that database. I am sure there are database wrapper classes for php to address your issue somewhere on the net , I just don't know where, since i have never searched for it. I will personally email you if i come across any ... Gurhan -----Original Message----- From: Arcadius A. [mailto:ahouans@sh.cvut.cz] Sent: Monday, April 15, 2002 7:56 AM To: php-db@lists.php.net Subject: [PHP-DB] Cross DB application Hello ! I'm planning to write a database application for MySQL, and then port it to PostrgeSQL. Is there any library or class that could help me to write/maintain just one source code for both MySQL and PostgreSQL ? Thanks. ARcadius -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#18515) next »