Skip to content

Instantly share code, notes, and snippets.

View mathijsmaliepaard's full-sized avatar

mathijsmaliepaard

View GitHub Profile
@brendo
brendo / class.mysql.php
Last active December 16, 2015 13:19
Improved Symphony MySQL Driver - Uses `mysqli` instead of `mysql`. - Supports a `master`, `slave` setup where the master accepts all writes, and the slaves processes reads To use, add an additional section to your config, `database_slave` which has the same details as `database`.
<?php
/**
* @package toolkit
*/
/**
* The DatabaseException class extends a normal Exception to add in
* debugging information when a SQL query fails such as the internal
* database error code and message in additional to the usual