summaryrefslogtreecommitdiffstats
path: root/application/config/database.php
diff options
context:
space:
mode:
authorAhmedul Haque Abid <a_h_abid@hotmail.com>2014-01-19 08:23:16 +0100
committerAhmedul Haque Abid <a_h_abid@hotmail.com>2014-01-19 08:23:16 +0100
commit4b9b5074c5f4ecc4cc0494acfe26379f9a6d4317 (patch)
tree189bcc52f042594b631205c4c321c2bdba2e3016 /application/config/database.php
parent99e2f8e2397ec4bf3ce5637d5a660a122aaa7b1b (diff)
Added save_queries config setting in config/database.php
Diffstat (limited to 'application/config/database.php')
-rw-r--r--application/config/database.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/application/config/database.php b/application/config/database.php
index f0b839757..361df9032 100644
--- a/application/config/database.php
+++ b/application/config/database.php
@@ -65,6 +65,13 @@
| ['autoinit'] Whether or not to automatically initialize the database.
| ['encrypt'] Whether or not to use an encrypted connection.
| ['compress'] Whether or not to use client compression (MySQL only)
+| ['save_queries'] TRUE/FALSE - save all executed queries.
+| Note: Useful for development when using with profiler. However,
+| when too many queries run, it leads to memory exhaust. So for production
+| mode it is better to set it FALSE. Also, if set to FALSE, the
+| $this->db->last_query() will return FALSE. This setting can
+| also be changed during runtime by using
+| $this->db->save_queries = TRUE|FALSE;
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
| - good for ensuring strict SQL while developing
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
@@ -97,6 +104,7 @@ $db['default'] = array(
'autoinit' => TRUE,
'encrypt' => FALSE,
'compress' => FALSE,
+ 'save_queries' => TRUE,
'stricton' => FALSE,
'failover' => array()
);