Work has started on revamping my PEAR package
DB_DataObject, While it's served well over the years, and I still use it every day.. We have been funded to create a new version, which runs on
PDO.
There is a
Migration plan in the github repo for
PDO_DataObject, I have currently completed the first two blocks, and almost the third block. But the key features are
- General Compatibility to DB_DataObject with a few exceptions - methods relating to PEAR::DB have been removed, and replaced with PDO calls
- New simpler configuration methods, with some error checking
- A complete test suite - which we will apply to DB_DataObject to ensure compatibility
- Chaining for most methods so this works
$data = PDO_DataObject::Factory('mytable')
->autoJoin()
->where("somevalue not like 'fred%'")
->limit(100)
->fetchAll();- Exceptions by default (PEAR is an optional dependency - not required)
- It should be FAST!!! - standard operations should require ZERO other classes - so no loading up a complex set of support classes. (odd or exotic features will be moved to secondary classes)
Feel free to watch the repo (we are using auto commit, so the commits are pretty meaningless at present)