mediatekformation

AbstractMySQLDriver
in package
implements VersionAwarePlatformDriver

Abstract base implementation of the {@link Driver} interface for MySQL based drivers.

Interfaces, Classes, Traits and Enums

VersionAwarePlatformDriver
Contract for a driver that is able to create platform instances by version.

Table of Contents

createDatabasePlatformForVersion()  : AbstractPlatform
Factory method for creating the appropriate platform instance for the given version.
getDatabasePlatform()  : MySQLPlatform
{@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
throws
Exception
Return values
AbstractPlatform —

getMariaDbMysqlVersionNumber()

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
throws
Exception
Return values
string —

getOracleMysqlVersionNumber()

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'

Tags
throws
Exception
Return values
string —

Search results