Driver
extends AbstractMySQLDriver
in package
FinalYes
Abstract base implementation of the {@see Driver} interface for MySQL based drivers.
Table of Contents
Methods
- connect() : Connection
- {@inheritDoc}
- createDatabasePlatformForVersion() : AbstractPlatform
- Factory method for creating the appropriate platform instance for the given version.
- getDatabasePlatform() : AbstractMySQLPlatform
- {@inheritDoc}
- getExceptionConverter() : ExceptionConverter
- getSchemaManager() : MySQLSchemaManager
- {@inheritDoc}
- constructPdoDsn() : string
- Constructs the MySQL PDO DSN.
- getMariaDbMysqlVersionNumber() : string
- Detect MariaDB server version, including hack for some mariadb distributions that starts with the prefix '5.5.5-'
- getOracleMysqlVersionNumber() : string
- Get a normalized 'version number' from the server string returned by Oracle MySQL servers.
Methods
connect()
{@inheritDoc}
public
connect(array<string|int, mixed> $params) : Connection
Parameters
- $params : array<string|int, mixed>
Return values
ConnectioncreateDatabasePlatformForVersion()
Factory method for creating the appropriate platform instance for the given version.
public
createDatabasePlatformForVersion(mixed $version) : AbstractPlatform
Parameters
- $version : mixed
-
The platform/server version string to evaluate. This should be given in the notation the underlying database vendor uses.
Tags
Return values
AbstractPlatformgetDatabasePlatform()
{@inheritDoc}
public
getDatabasePlatform() : AbstractMySQLPlatform
Return values
AbstractMySQLPlatformgetExceptionConverter()
public
getExceptionConverter() : ExceptionConverter
Return values
ExceptionConvertergetSchemaManager()
{@inheritDoc}
public
getSchemaManager(Connection $conn, AbstractPlatform $platform) : MySQLSchemaManager
Parameters
- $conn : Connection
- $platform : AbstractPlatform
Tags
Return values
MySQLSchemaManagerconstructPdoDsn()
Constructs the MySQL PDO DSN.
private
constructPdoDsn(array<string|int, mixed> $params) : string
Parameters
- $params : array<string|int, mixed>
Return values
stringgetMariaDbMysqlVersionNumber()
Detect MariaDB server version, including hack for some mariadb distributions that starts with the prefix '5.5.5-'
private
getMariaDbMysqlVersionNumber(string $versionString) : string
Parameters
- $versionString : string
-
Version string as returned by mariadb server, i.e. '5.5.5-Mariadb-10.0.8-xenial'
Tags
Return values
stringgetOracleMysqlVersionNumber()
Get a normalized 'version number' from the server string returned by Oracle MySQL servers.
private
getOracleMysqlVersionNumber(string $versionString) : string
Parameters
- $versionString : string
-
Version string returned by the driver, i.e. '5.7.10'