[PEPr] Comment on Database::DB_Table
| From: | PEPr | Date: | Tue, 23 Mar 2004 15:15:04 +0000 |
| Subject: | [PEPr] Comment on Database::DB_Table | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-26681@lists.php.net to get a copy of this message | ||
Alan Knowles (http://pear.php.net/user/alan_k) has commented on the proposal for Database::DB_Table.
Comment:
Need to fix this.
only supports INT and STR types,
- now supports DATE, DATETIME, TIME, MYSQLTIMESTAMP
- FLOATS are on the todo list.
not easy to get started with,
maybe :)
it auto-generates classes.
- This is optional now.
It uses the class to generate a .ini file, not the other way around.
- Now 'can' read database structure on the fly.
The basic philosical difference (at present.) is that dataobjects reads from the database structure,
as defined in the database.
Where as db_table creates the database structure from the data within the class.
This has advantages
= easy installing etc.
and disadvantages
= more difficult to accomodate changes in database structure after project starts..
Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=14
--
Sent by PEPr, the automatic proposal system at http://pear.php.net