db->last_query() and profiling of DB queries. | When you run a query, with this setting set to TRUE (default), | CodeIgniter will store the SQL statement for debugging purposes. | However, this may cause high memory usage, especially if you run | a lot of SQL queries ... disable this to avoid that problem. | | The $active_group variable lets you choose which connection group to | make active. By default there is only one group (the 'default' group). | | The $query_builder variables lets you determine whether or not to load | the query builder class. */ $active_group = 'default'; $query_builder = TRUE; $CI = & get_instance(); if ($CI->config->item('db_driver') == 'sqlite') { $db['default']['database'] = $CI->config->item('db_database') . '.db'; $db['default']['dbdriver'] = 'sqlite3'; } else { $db['default']['hostname'] = $CI->config->item('db_hostname'); $db['default']['username'] = $CI->config->item('db_username'); $db['default']['password'] = $CI->config->item('db_password'); $db['default']['database'] = $CI->config->item('db_database'); if (null !== $CI->config->item('db_driver')) { $db['default']['dbdriver'] = $CI->config->item('db_driver'); } else { $db['default']['dbdriver'] = 'mysqli'; } } $db['default']['dbprefix'] = $CI->config->item('db_prefix'); $db['default']['pconnect'] = FALSE; $db['default']['db_debug'] = TRUE; $db['default']['cache_on'] = FALSE; $db['default']['cachedir'] = ''; $db['default']['char_set'] = 'utf8'; $db['default']['dbcollat'] = 'utf8_general_ci'; $db['default']['swap_pre'] = ''; $db['default']['autoinit'] = TRUE; $db['default']['stricton'] = FALSE; /* End of file database.php */ /* Location: ./application/config/database.php */