You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say I have a MySQL database with main contents for the site and a secondary SQLite database with project-specific contents.
I want to be able to create a separate database connection for each database.
Currently this is not possible because the instance() method only takes one value (Line 36):
self::$instance = new PDO($dsn, DB_USER, DB_PASS, $opt);
The request could be resolved by introducing a $dbConnectionName variable that (optionally) allow programmers to name each connection. To support this, instance() can name the connection like so:
Say I have a MySQL database with main contents for the site and a secondary SQLite database with project-specific contents.
I want to be able to create a separate database connection for each database.
Currently this is not possible because the instance() method only takes one value (Line 36):
The request could be resolved by introducing a $dbConnectionName variable that (optionally) allow programmers to name each connection. To support this, instance() can name the connection like so:
Programmers can now maintain connections to multiple databases, using code like this:
The text was updated successfully, but these errors were encountered: