Method
Database::register
Synopsis
public static Database::register(string, string): bool
- Area
Runtime\PS\Database\registerareas
Description
Database::register adds the connection $name to the set new Database() resolves against, with $dsn in "<driver>://<dsn>" form. Registering a name that already means the same thing does nothing; registering it with a different DSN closes the pool opened for the old one.
Usage
$value = Database::register($arguments);
$fn = Database::register(...);