RE: [PHP] abstraction for databases

From: Date: Wed, 08 Nov 2000 19:21:13 +0000
Subject: RE: [PHP] abstraction for databases
References: 1  Groups: php.db php.general 
Request: Send a blank email to php-general+get-24363@lists.php.net to get a copy of this message
I wrote a PHP-based "wrapper" for mySQL databases. It analyzes your table structures and creates some PHP classes with basic "put/get" methods, as well as a "save self to database" and a "load self from database" set of methods. These are then extended into more specific classes, just using the wrappers as a base. It's not cross-database or anything, but it's been of good use to code against. Abstracts your database tables into easily managed classes. =) I'll see if the owner (I wrote it under contract to a company) will allow me to release it. If so, I'll post it to the lists and submit an article on phpbuilder for it. I can't find a whole lot of info on PEAR, so I'm just using this for now. Anyone have a site for PEAR info, or just the PEAR directory? -Szii At 06:45 PM 11/8/00 +0100, Lars Holm Nielsen wrote: >Take a look in PEAR directory of PHP. There's a db abstraction layer like >DBI to perl. Besides, you nearly only need to change the function names to >change a database. Then if you've make some nice structured code, this >shouldn't take much longer than changing the database type in ADO or JDBC. > >Regards, >Lars > >-----Original Message----- >From: Sakalis Giorgos [mailto:sakalis@ceid.upatras.gr] >Sent: 8. november 2000 17:36 >To: php-general@lists.php.net >Subject: [PHP] abstraction for databases > > >Does anyone knows why there is no abstarction for databases in PHP, but >there are several functions for each database. > >I think a model as Microsoft' s ADO will make develpment and migration >of an application very easy. All you have to do is to change the type of >database. The code conserning the communication with databse remains the >same.. > >Sakalis Giorgos > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#24363) next »