Welcome Guest, Not a member yet? Register   Sign In
Database test mode in model

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->query('AN SQL QUERY...');

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?

Messages In This Thread
Database test mode in model - by kyle - 04-01-2020, 02:34 PM

Theme © iAndrew 2016 - Forum software by © MyBB