After a user logs in, database credentials are gathered from database.
I need to change database connection to use this credentials on following queries.
I found I can do:
$dsn = 'dbdriver://username:password@hostname/database';
$this->load->database($dsn);
But I am not sure how to do this change in one place and that it applies to next queries and discard config on database.
Any ideas?