mediatekformation

Driver extends AbstractMySQLDriver
in package

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

Table of Contents

connect()  : Connection
{@inheritdoc}
createDatabasePlatformForVersion()  : AbstractPlatform
Factory method for creating the appropriate platform instance for the given version.
getDatabasePlatform()  : MySQLPlatform
{@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
Connection —

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 —

constructPdoDsn()

Constructs the MySQL PDO DSN.

private constructPdoDsn(array<string|int, mixed> $params) : string
Parameters
$params : array<string|int, mixed>
Return values
string —

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