AbstractMySQLDriver
in package
implements
VersionAwarePlatformDriver
AbstractYes
Abstract base implementation of the {@see Driver} interface for MySQL based drivers.
Table of Contents
Interfaces
- VersionAwarePlatformDriver
- Contract for a driver that is able to create platform instances by version.
Methods
- createDatabasePlatformForVersion() : AbstractPlatform
- Factory method for creating the appropriate platform instance for the given version.
- getDatabasePlatform() : AbstractMySQLPlatform
- {@inheritDoc}
- getExceptionConverter() : ExceptionConverter
- getSchemaManager() : MySQLSchemaManager
- {@inheritDoc}
- 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
createDatabasePlatformForVersion()
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
MySQLSchemaManagergetMariaDbMysqlVersionNumber()
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'