Driver
extends AbstractOracleDriver
in package
PDO Oracle driver.
WARNING: This driver gives us segfaults in our testsuites on CLOB and other stuff. PDO Oracle is not maintained by Oracle or anyone in the PHP community, which leads us to the recommendation to use the "oci8" driver to connect to Oracle instead.
Table of Contents
- connect() : mixed
- {@inheritdoc}
- convertException() : DriverException
- Converts a given DBAL driver exception into a standardized DBAL driver exception.
- getDatabase() : string
- Gets the name of the database connected to for this driver.
- getDatabasePlatform() : AbstractPlatform
- Gets the DatabasePlatform instance that provides all the metadata about the platform this driver connects to.
- getName() : mixed
- {@inheritdoc}
- getSchemaManager() : AbstractSchemaManager
- Gets the SchemaManager that can be used to inspect and change the underlying database schema of the platform this driver connects to.
- getEasyConnectString() : string
- Returns an appropriate Easy Connect String for the given parameters.
- constructPdoDsn() : string
- Constructs the Oracle PDO DSN.
Methods
connect()
{@inheritdoc}
public
connect(array<string|int, mixed> $params[, mixed $username = null ][, mixed $password = null ][, array<string|int, mixed> $driverOptions = array() ]) : mixed
Parameters
- $params : array<string|int, mixed>
- $username : mixed = null
- $password : mixed = null
- $driverOptions : array<string|int, mixed> = array()
Return values
mixed —convertException()
Converts a given DBAL driver exception into a standardized DBAL driver exception.
public
convertException(mixed $message, DriverException $exception) : DriverException
Parameters
- $message : mixed
-
The DBAL exception message to use.
- $exception : DriverException
-
The DBAL driver exception to convert.
Return values
DriverException —An instance of one of the DriverException subclasses.
getDatabase()
Gets the name of the database connected to for this driver.
public
getDatabase(Connection $conn) : string
Parameters
- $conn : Connection
Return values
string —The name of the database.
getDatabasePlatform()
Gets the DatabasePlatform instance that provides all the metadata about the platform this driver connects to.
public
getDatabasePlatform() : AbstractPlatform
Return values
AbstractPlatform —The database platform.
getName()
{@inheritdoc}
public
getName() : mixed
Return values
mixed —getSchemaManager()
Gets the SchemaManager that can be used to inspect and change the underlying database schema of the platform this driver connects to.
public
getSchemaManager(Connection $conn) : AbstractSchemaManager
Parameters
- $conn : Connection
Return values
AbstractSchemaManager —getEasyConnectString()
Returns an appropriate Easy Connect String for the given parameters.
protected
getEasyConnectString(array<string|int, mixed> $params) : string
Parameters
- $params : array<string|int, mixed>
-
The connection parameters to return the Easy Connect STring for.
Tags
Return values
string —constructPdoDsn()
Constructs the Oracle PDO DSN.
private
constructPdoDsn(array<string|int, mixed> $params) : string
Parameters
- $params : array<string|int, mixed>
Return values
string —The DSN.