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; global $savvyext; $db['default'] = array( 'dsn' => '', 'hostname' => $savvyext->cfgReadChar('database.host'), /* '10.142.0.10', */ 'username' => $savvyext->cfgReadChar('database.user'), /* 'savvy', */ 'password' => $savvyext->cfgReadChar('database.pass'), /* 'savvy001!', */ 'database' => $savvyext->cfgReadChar('database.name'), /* 'savvy', */ 'port' => $savvyext->cfgReadChar('database.port'), /* '5432', */ 'dbdriver' => 'postgre', 'dbprefix' => '', 'pconnect' => FALSE, 'db_debug' => (ENVIRONMENT !== 'production'), 'cache_on' => FALSE, 'cachedir' => '', 'char_set' => 'utf8', 'dbcollat' => 'utf8_general_ci', 'swap_pre' => '', 'encrypt' => FALSE, 'compress' => FALSE, 'stricton' => FALSE, 'failover' => array(), 'save_queries' => TRUE ); $db['gps'] = array( 'dsn' => '', 'hostname' => $savvyext->cfgReadChar('gpsdatabase.host'), /* '10.142.0.7', */ 'username' => $savvyext->cfgReadChar('gpsdatabase.user'), /* 'savvy', */ 'password' => $savvyext->cfgReadChar('gpsdatabase.pass'), /* 'savvy001!', */ 'database' => $savvyext->cfgReadChar('gpsdatabase.name'), /* 'savvy_gps', */ 'port' => $savvyext->cfgReadChar('gpsdatabase.port'), /* '5432', */ 'dbdriver' => 'postgre', 'dbprefix' => '', 'pconnect' => FALSE, 'db_debug' => (ENVIRONMENT !== 'production'), 'cache_on' => FALSE, 'cachedir' => '', 'char_set' => 'utf8', 'dbcollat' => 'utf8_general_ci', 'swap_pre' => '', 'encrypt' => FALSE, 'compress' => FALSE, 'stricton' => FALSE, 'failover' => array(), 'save_queries' => TRUE ); $db['savvy_replica'] = array( 'dsn' => '', 'hostname' => $savvyext->cfgReadChar('database_replica.host'), /* '10.142.0.7', */ 'username' => $savvyext->cfgReadChar('database_replica.user'), /* 'savvy', */ 'password' => $savvyext->cfgReadChar('database_replica.pass'), /* 'savvy001!', */ 'database' => $savvyext->cfgReadChar('database_replica.name'), /* 'savvy_replica', */ 'port' => $savvyext->cfgReadChar('database_replica.port'), /* '5432', */ 'dbdriver' => 'postgre', 'dbprefix' => '', 'pconnect' => FALSE, 'db_debug' => (ENVIRONMENT !== 'production'), 'cache_on' => FALSE, 'cachedir' => '', 'char_set' => 'utf8', 'dbcollat' => 'utf8_general_ci', 'swap_pre' => '', 'encrypt' => FALSE, 'compress' => FALSE, 'stricton' => FALSE, 'failover' => array(), 'save_queries' => TRUE );