ADAPTERS_MAP
ADAPTERS_MAP
Represent the database manager of the entire framework.
connect(string $connectionName, string $connectionString) : \Gishiki\Database\DatabaseInterface
Create a new database connection and store the newly generated connection.
string | $connectionName | the name of the database connection |
string | $connectionString | the connection string |
invalid name or connection string
the error occurred while opening the database connection
a database adapter with the given name doesn't exists
the connected database instance
retrieve(string $connectionName = 'default') : \Gishiki\Database\DatabaseInterface
Retrieve the connection with the given name from the list of performed conenctions.
If the name is not specified the default one is retrieved.
string | $connectionName | the name of the selected connection |
the collection name has not be given as a string
the given connection name is not registered as a valid collection
the connected database instance