Methods |
public
|
connect(
mixed[] $params,
string|null $username = null,
string|null $password = null,
mixed[] $driverOptions = [],
): Connection
Attempts to create a connection with the database.
Attempts to create a connection with the database.
The usage of NULL to indicate empty username or password is deprecated. Use an empty string instead.
Parameters
$params |
All connection parameters passed by the user.
|
$username |
The username to use when connecting.
|
$password |
The password to use when connecting.
|
$driverOptions |
The driver options to use when connecting.
|
Returns
|
#
|
public
|
getDatabasePlatform(): AbstractPlatform
Gets the DatabasePlatform instance that provides all the metadata about
the platform this driver connects to.
Gets the DatabasePlatform instance that provides all the metadata about
the platform this driver connects to.
Returns
|
#
|
public
|
getSchemaManager(Connection $conn): AbstractSchemaManager
Gets the SchemaManager that can be used to inspect and change the underlying
database schema of the platform this…
Gets the SchemaManager that can be used to inspect and change the underlying
database schema of the platform this driver connects to.
|
#
|
public
|
getName(): string
Gets the name of the driver.
Gets the name of the driver.
Returns
|
#
|
public
|
getDatabase(Connection $conn): string
Gets the name of the database connected to for this driver.
Gets the name of the database connected to for this driver.
Deprecated
Use Connection::getDatabase() instead.
Returns
The name of the database.
|
#
|