Alpha4615 / phpMyCache

A PHP library that caches mySQL SELECT queries to the file system
GNU General Public License v2.0
1 stars 1 forks source link

Allow developer to specify query failure callback #7

Closed Alpha4615 closed 10 years ago

Alpha4615 commented 10 years ago

Currently when a query fails, nothing at all happens.

There should be an optional configuration option that allows developer to handle failures with the mySQLi result being passed as an argument in an anonymous function.

Additionally the default value for this option is an anonymous function that throws an exception with the query error message as the exception message.