Welcome Guest, Not a member yet? Register   Sign In
Making CI's DBstuff play nice with slave/master setups
#3

[eluser]moodh[/eluser]
[quote author="wh1tel1te" date="1302494584"]You could possibly create two config groups. Have a look at config groups here: Database Configuration

One group would be your select group (say "select"), and another would be your insert/update/delete group (say "update").

Then you could load the database class using the required group:

Code:
// I want to do some selecting!
$this->load->database('select');
// My select code goes here!

// Now I want to do some updating!
$this->load->database('update');
// My update code goes here!

More info here.[/quote]

If you read my entry thats exactly what I want to avoid since it shouldn't be needed. I'm looking for a solution that maps the correct statement against the correct database setting without having to use $DB1->db->select(), $DB2->db->insert();


Messages In This Thread
Making CI's DBstuff play nice with slave/master setups - by El Forum - 04-10-2011, 02:02 PM
Making CI's DBstuff play nice with slave/master setups - by El Forum - 04-10-2011, 05:03 PM
Making CI's DBstuff play nice with slave/master setups - by El Forum - 04-11-2011, 01:20 AM
Making CI's DBstuff play nice with slave/master setups - by El Forum - 04-15-2011, 07:46 AM
Making CI's DBstuff play nice with slave/master setups - by El Forum - 07-19-2012, 03:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB