doll
doll copied to clipboard
Extended PDO with inline type hinting, deferred connection support, logging and benchmarking.
``` Uncaught PDOException: SQLSTATE[HY000]: General error: PDO::ATTR_STATEMENT_CLASS requires format array(classname, array(ctor_args)); the classname must be a string specifying an existing class in /var/www/html/trailGuides/DB.php:289 Stack trace: #0 /var/www/html/trailGuides/DB.php(289): PDO->setAttribute(13, Array) #1...
Hi it seems that this support mysql only (At least the benchmarking part). Can you add more info regards this topic to readme file?
This commit just updates some docblocks. I was getting some warnings in my IDE and this cleared those.
This is useful when dealing with queries related to pagination where you want to retrieve data with a limit and offset, but also need to know the total number of...
Doll implementation uses delayed initialisation, which in effect does not allow to catch invalid driver attributes before the database connection is established. This might prove a trouble. If it does,...
None of the existing PDO implementations support binding an array to "IN" operator. I propose the following syntax: ``` php $sth = $db->prepare("SELECT 1 FROM `foo` WHERE `name` IN (s:,foo)");...
Several existing PDO extensions implement read/write splitting, e.g. http://laravel.com/docs/database#read-write-connections https://github.com/mauricoder/PDO_Proxy This is used when database backend is using master-slave replication.