Documentation

Driver extends Driver
in package

Drizzle driver using PDO MySql.

Tags
author

Kim Hemsø Rasmussen kimhemsoe@gmail.com

Table of Contents

connect()  : mixed
{@inheritdoc}
convertException()  : DriverException
Converts a given DBAL driver exception into a standardized DBAL driver exception.
createDatabasePlatformForVersion()  : mixed
{@inheritdoc}
getDatabase()  : string
Gets the name of the database connected to for this driver.
getDatabasePlatform()  : mixed
{@inheritdoc}
getName()  : mixed
{@inheritdoc}
getSchemaManager()  : mixed
{@inheritdoc}
constructPdoDsn()  : string
Constructs the MySql PDO DSN.

Methods

connect()

{@inheritdoc}

public connect(array<string|int, mixed> $params[, mixed $username = null ][, mixed $password = null ][, array<string|int, mixed> $driverOptions = array() ]) : mixed
Parameters
$params : array<string|int, mixed>
$username : mixed = null
$password : mixed = null
$driverOptions : array<string|int, mixed> = array()
Return values
mixed

convertException()

Converts a given DBAL driver exception into a standardized DBAL driver exception.

public convertException(mixed $message, DriverException $exception) : DriverException
Parameters
$message : mixed

The DBAL exception message to use.

$exception : DriverException

The DBAL driver exception to convert.

Tags
link
http://dev.mysql.com/doc/refman/5.7/en/error-messages-client.html
link
http://dev.mysql.com/doc/refman/5.7/en/error-messages-server.html
Return values
DriverException

An instance of one of the DriverException subclasses.

createDatabasePlatformForVersion()

{@inheritdoc}

public createDatabasePlatformForVersion(mixed $version) : mixed
Parameters
$version : mixed
Return values
mixed

getDatabase()

Gets the name of the database connected to for this driver.

public getDatabase(Connection $conn) : string
Parameters
$conn : Connection
Return values
string

The name of the database.

getDatabasePlatform()

{@inheritdoc}

public getDatabasePlatform() : mixed
Return values
mixed

getName()

{@inheritdoc}

public getName() : mixed
Return values
mixed

getSchemaManager()

{@inheritdoc}

public getSchemaManager(Connection $conn) : mixed
Parameters
$conn : Connection
Return values
mixed

constructPdoDsn()

Constructs the MySql PDO DSN.

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

The DSN.

Search results