dbpatch/DbPatch — Issue #21: Support other drivers than mysqli
Author: jorissteyn
Created: 2012-02-19 16:35:30+00:00
State: open

DbPatch offers no support out-of-the-box for drivers other than the mysqli extension. Running DbPatch over pdo_mysql for example involves creating an adapter file like Db/Adapter/Mysqli.php and duplicate all the cli dump/import code.

Current problem:
- for every database driver, dbpatch must implement an adapter
- by implementing an adapter like Mysqli.php, you have to duplicate all the import/dump logic
- by refactoring the import/dump logic to Core/Db.php we lose the flexibility to treat command line options different per database/driver

Proposed solution:
- remove Db/Adapter from dbpatch, dbpatch must works on all adapter types supported by zf
- refactor dump/import to Core/Db.php, make the binaries and command line options configurable with backward compatible support for current configuration options (bin_dir)

This way we truly support _any_ RDBMS brand!