note 104360 deleted from class.mysqli by danbrown
| From: | danbrown@php.net | Date: | Fri, 10 Jun 2011 15:27:13 +0000 |
| Subject: | note 104360 deleted from class.mysqli by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-180411@lists.php.net to get a copy of this message | ||
Note Submitter: Pascal HAVELANGE
----
I wrote a php script (command line) that will save you some time if you deal with many or large
databases. It generates for you PHP5 classes (that uses MySQLi) out of any MySQL5 database.
- One class per table
- Select (with filters/limits), Insert, Update, Delete, Count
- Accessors for linked tables based on the InnoDB foreign keys
- Automatic datetime type conversion
- Generated code is documented
For the time being I have only implemented support for MySQL5 DB to PHP5 classes, but other
languages, and databases can be added using php and XSL.
The project name is php-db2class and can be found here:
https://sourceforge.net/projects/classify-db/