{"ref":"refs/heads/develop","commits":[{"author":{"name":"Felix Balfoort","email":"5029caa42e6f55b44d1f02a0842fdc64652a0fcd@gmail.com"},"sha":"ea6e466309887cef69f5685f97d17e6e6b335c2f","message":"The DB_driver can now use failover databases if specified\n\nThe DB_driver can now use failover databases if specified.\nIf the main connection shouldn't connect for some reason the DB_driver will now try to connect to specified connections in the failover config.\n\nExample config:\n$db['default']['hostname'] = 'localhost';\n$db['default']['username'] = '';\n$db['default']['password'] = '';\n$db['default']['database'] = '';\n$db['default']['dbdriver'] = 'mysql';\n$db['default']['dbprefix'] = '';\n$db['default']['pconnect'] = TRUE;\n$db['default']['db_debug'] = TRUE;\n$db['default']['cache_on'] = FALSE;\n$db['default']['cachedir'] = '';\n$db['default']['char_set'] = 'utf8';\n$db['default']['dbcollat'] = 'utf8_general_ci';\n$db['default']['swap_pre'] = '';\n$db['default']['autoinit'] = TRUE;\n$db['default']['stricton'] = FALSE;\n$db['default']['failover'] = array();\n\n$db['default']['failover'][0]['hostname'] = 'localhost1';\n$db['default']['failover'][0]['username'] = '';\n$db['default']['failover'][0]['password'] = '';\n$db['default']['failover'][0]['database'] = '';\n$db['default']['failover'][0]['dbdriver'] = 'mysql';\n$db['default']['failover'][0]['dbprefix'] = '';\n$db['default']['failover'][0]['pconnect'] = TRUE;\n$db['default']['failover'][0]['db_debug'] = TRUE;\n$db['default']['failover'][0]['cache_on'] = FALSE;\n$db['default']['failover'][0]['cachedir'] = '';\n$db['default']['failover'][0]['char_set'] = 'utf8';\n$db['default']['failover'][0]['dbcollat'] = 'utf8_general_ci';\n$db['default']['failover'][0]['swap_pre'] = '';\n$db['default']['failover'][0]['autoinit'] = TRUE;\n$db['default']['failover'][0]['stricton'] = FALSE;\n$db['default']['failover'][0]['failover'] = array();\n\n$db['default']['failover'][1]['hostname'] = 'localhost2';\n$db['default']['failover'][1]['username'] = '';\n$db['default']['failover'][1]['password'] = '';\n$db['default']['failover'][1]['database'] = '';\n$db['default']['failover'][1]['dbdriver'] = 'mysql';\n$db['default']['failover'][1]['dbprefix'] = '';\n$db['default']['failover'][1]['pconnect'] = TRUE;\n$db['default']['failover'][1]['db_debug'] = TRUE;\n$db['default']['failover'][1]['cache_on'] = FALSE;\n$db['default']['failover'][1]['cachedir'] = '';\n$db['default']['failover'][1]['char_set'] = 'utf8';\n$db['default']['failover'][1]['dbcollat'] = 'utf8_general_ci';\n$db['default']['failover'][1]['swap_pre'] = '';\n$db['default']['failover'][1]['autoinit'] = TRUE;\n$db['default']['failover'][1]['stricton'] = FALSE;\n$db['default']['failover'][1]['failover'] = array();\n\nSigned-off-by: Felix Balfoort <fhjbalfoort@gmail.com>","url":"https://api.github.com/repos/fhjbalfoort/CodeIgniter/commits/ea6e466309887cef69f5685f97d17e6e6b335c2f"}],"head":"ea6e466309887cef69f5685f97d17e6e6b335c2f","size":1,"push_id":51800097}