Welcome Guest, Not a member yet? Register   Sign In
multiple database connections postgresql
#4

[eluser]swmcl[/eluser]
I'll try to explain this again.

I've got Postgres setup with various databases. I thought I would be able to setup an 'environment' like it says in the Database Library / Configuration page of the online User Guide. So if I had say 5 separate databases I could setup 5 different environments. After which, I would then be able to setup 5 controller files to 5 completely separate and independent applications.

In the Guide it says that I can set a global change in effect by,
Code:
$active_group = "test";
But that would mean I can't work on separate projects simultaneously wouldn't it ?

On the Database / Connecting page of the User Guide it says I can specify a group name (the group being set out in the config.php file) like thus:
Code:
$this->load->database('group_name');
where the group name in the example of the User Guide is $config.

Am I to assume this is 'not working'? And that the User Guide is - how do we say - incorrect ?

Perhaps the best way is to connect to the database of choice by using the DSN method seen in Database Library / Connecting ? That would be a shame.

Perhaps all the MySQL users are also unable to use this CodeIgniter feature very well ?

Rgds,


Messages In This Thread
multiple database connections postgresql - by El Forum - 06-14-2011, 01:20 AM
multiple database connections postgresql - by El Forum - 06-14-2011, 03:38 PM
multiple database connections postgresql - by El Forum - 06-14-2011, 05:41 PM
multiple database connections postgresql - by El Forum - 06-14-2011, 06:18 PM
multiple database connections postgresql - by El Forum - 06-14-2011, 06:38 PM
multiple database connections postgresql - by El Forum - 06-14-2011, 07:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB