Documentation

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}
compilePostInitializers()  : Generator<int, Initializer>
compilePreInitializers()  : Generator<int, Initializer>
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

compilePostInitializers()

private compilePostInitializers(array<string, mixed> $params) : Generator<int, Initializer>
Parameters
$params : array<string, mixed>
Return values
Generator<int, Initializer>

compilePreInitializers()

private compilePreInitializers(array<string, mixed> $params) : Generator<int, Initializer>
Parameters
$params : array<string, mixed>
Return values
Generator<int, Initializer>

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

        
On this page

Search results