Documentation

Driver extends AbstractPostgreSQLDriver
in package

Driver that connects through pdo_pgsql.

Tags
since
2.0

Table of Contents

connect()  : mixed
{@inheritdoc}
convertException()  : DriverException
Converts a given DBAL driver exception into a standardized DBAL driver exception.
createDatabasePlatformForVersion()  : AbstractPlatform
Factory method for creating the appropriate platform instance for the given version.
getDatabase()  : string
Gets the name of the database connected to for this driver.
getDatabasePlatform()  : AbstractPlatform
Gets the DatabasePlatform instance that provides all the metadata about the platform this driver connects to.
getName()  : mixed
{@inheritdoc}
getSchemaManager()  : AbstractSchemaManager
Gets the SchemaManager that can be used to inspect and change the underlying database schema of the platform this driver connects to.
_constructPdoDsn()  : string
Constructs the Postgres 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://www.postgresql.org/docs/9.3/static/errcodes-appendix.html
Return values
DriverException

An instance of one of the DriverException subclasses.

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.

Return values
AbstractPlatform

getName()

{@inheritdoc}

public getName() : mixed
Return values
mixed

_constructPdoDsn()

Constructs the Postgres PDO DSN.

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

The DSN.

Search results