Driver
in package
implements
Driver
Interfaces, Classes, Traits and Enums
- Driver
- Driver interface.
Table of Contents
- $case : int
- $driver : Driver
- $mode : int
- __construct() : mixed
- connect() : Connection
- Attempts to create a connection with the database.
- getDatabasePlatform() : AbstractPlatform
- Gets the DatabasePlatform instance that provides all the metadata about the platform this driver connects to.
- getExceptionConverter() : ExceptionConverter
- Gets the ExceptionConverter that can be used to convert driver-level exceptions into DBAL exceptions.
- getSchemaManager() : AbstractSchemaManager
- Gets the SchemaManager that can be used to inspect and change the underlying database schema of the platform this driver connects to.
Properties
$case
private
int
$case
$driver
private
Driver
$driver
$mode
private
int
$mode
Methods
__construct()
public
__construct(Driver $driver, int $mode, int $case) : mixed
Parameters
- $driver : Driver
- $mode : int
- $case : int
Return values
mixed —connect()
Attempts to create a connection with the database.
public
connect(array<string|int, mixed> $params) : Connection
Parameters
- $params : array<string|int, mixed>
-
All connection parameters.
Return values
Connection —The database connection.
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.
getExceptionConverter()
Gets the ExceptionConverter that can be used to convert driver-level exceptions into DBAL exceptions.
public
getExceptionConverter() : ExceptionConverter
Return values
ExceptionConverter —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, AbstractPlatform $platform) : AbstractSchemaManager
Parameters
- $conn : Connection
- $platform : AbstractPlatform