codeigniter-mongodb-library
codeigniter-mongodb-library copied to clipboard
switch_db by config_group
to improve user understanding when switching databases is best to use the "config_group" to assign the new connection.
Change library/Mongo_db:
return $this->reconnect(['config' => array_replace_recursive($this->config, ['connection' => ['db_name' => $database]])]);
to
return $this->reconnect(['config_group' => $database]);
Hi, @mullernato! At the moment I'm not ready to make innovations. Only fixes existing errors. Perhaps a little later I will consider your proposal. Sorry.
How can I conncet replicate mongodb database and also multiple connection. Please help