I am looking for a way to use the built in transaction test mode while accessing my data through the Codeigniter Model. I want to be able to use test mode while I am developing my site to test my database functions without modifying anything.
If you manually initiate a transaction, you can set test mode to on by setting the first parameter to "true".
PHP Code:
$this->db->transStart(true);
$this->db->query('AN SQL QUERY...');
$this->db->transComplete();
Is there any way to do this through the model? Or in the Database configuration settings?
Or is there a way to override the default database connection to allow for a custom setting to be put in the transStart function?