Top Level :: Database
This package is not maintained, if you would like to take over please go to this page
Alan Knowles <
alan at akbkhome dot com >
||DEAD - I'm not working on this, - currently PEAR::DB_DataObjects does all I need, so there is no motivation to carry on with it.
DBDO performs 2 tasks:
1. Builds SQL statements based on the objects vars and the builder methods.
2. acts as a datastore for a table row. (ORM)
The core class is designed to be extended for each of your tables so
that you put the data logic inside the data classes.
For the most part, refer to this for documentation
and the project home page for any changes in method names.
The key differences between DataObjects and DBDO are:
- PHP5 only
- query() / with no arguments replaces find()
- assignFrom replaces setFrom
- DBDO::factory('dbalias','table') has 2 arguments, first being the db alias
- Configuration done using static methods.
- Addition of FetchAll
$do->fetchAll(DBDO::SINGLE | DBDO::OBJECTS | DBDO::KEY_VALUE | DBDO::VALUE)
- Error handling
* Throws exceptions for database errors / unusual stuff
* E_ERROR's and dies if you use it incorrectly (eg. fixable at code level)
- No support for joins yet.. (On the TODO list)
Building it Requires libgda (www.gnome-db.org), currently from CVS, which can be a pain.
- Win32 support is theoretically possible, it just requires someone to spend time working
out how to build libgda (which has windows makefiles) and this library.
- Initial Packaged Release
At this point, DBDO is working on at least one web site, so it is undergoing
testing, and needs more people to come up with ideas to improve it, or just
find more reproducable bugs..
|Dependencies for release 0.1.0
||No dependencies registered.