• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Database test mode in model

#1
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?
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.