Switch Database layer to Doctrine DBAL
Brought to you by:
cweiske
The database layer currently used doesn't offer proper error handling and needs die() messages everywhere, while exceptions are the better solution.
We should switch to a better suited and more up-to-date dbal that also supports sqlite - we need it for a standalone phar file app that runs without installation.
Since I like PDO, but PDO lacks some functionality like fluent interfaces, we should use a DBAL on top of PDO - Doctrine's DBAL seems suitable.
The current layer is 148kiB and 4888 lines of PHP code. Doctrine's DBAL is 1.2MiB and 12.000 LOC. Download size of Doctrine's PEAR packages is 100k, which is ok.
I couldn't find where DBAL supported fluent interfacing. Looks to be just in the ORM. Highly unfortunate.
Ticket moved from /p/semanticscuttle/feature-requests/15/