Menu

#133 Switch Database layer to Doctrine DBAL

open
nobody
v0.95
5
2013-04-07
2011-06-07
No

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.

Discussion

  • Christian Weiske

    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.

     
  • Mark Pemberton

    Mark Pemberton - 2011-06-23

    I couldn't find where DBAL supported fluent interfacing. Looks to be just in the ORM. Highly unfortunate.

     
  • Christian Weiske

    • labels: API --> API, feature
    • group: --> v0.95
     
  • Christian Weiske

    Ticket moved from /p/semanticscuttle/feature-requests/15/

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.