DatabaseManager
class DatabaseManager implements ConnectionResolverInterface (View source)
Methods
Get a database connection instance.
Disconnect from the given database and remove from local cache.
Disconnect from the given database.
Reconnect to the given database.
Get the default connection name.
Set the default connection name.
Get all of the support drivers.
Get all of the drivers that are actually available.
Register an extension connection resolver.
Return all of the created connections.
Dynamically pass methods to the default connection.
Details
at line line 48
void
__construct(
Application $app,
ConnectionFactory $factory)
Create a new database manager instance.
at line line 60
ConnectionInterface
connection(
string $name = null)
Get a database connection instance.
at line line 98
void
purge(
string $name = null)
Disconnect from the given database and remove from local cache.
at line line 293
void
extend(
string $name,
callable $resolver)
Register an extension connection resolver.
at line line 315
mixed
__call(
string $method,
array $parameters)
Dynamically pass methods to the default connection.