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.
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.