package Default
inherited_from \Zend\Db\Adapter\Driver\AbstractConnection

 Methods

Constructor

__construct(resource|array|null $connectionInfo = null

Parameters

$connectionInfo

resourcearraynull

{@inheritDoc}

beginTransaction() 

{@inheritDoc}

commit() 

{@inheritDoc}

connect() 

Exceptions

\Zend\Db\Adapter\Exception\RuntimeException on failure

Disconnect

disconnect() 
inherited_from \Zend\Db\Adapter\Driver\AbstractConnection::disconnect()

Disconnect

disconnect() 
Inherited
inherited_from \Zend\Db\Adapter\Driver\ConnectionInterface::disconnect()

{@inheritDoc}

execute($sql) : resource | \Zend\Db\ResultSet\ResultSetInterface

Parameters

$sql

Exceptions

\Zend\Db\Adapter\Exception\InvalidQueryException

Returns

resource\Zend\Db\ResultSet\ResultSetInterface

Get connection parameters

getConnectionParameters() : array
Inherited

Returns

array

{@inheritDoc}

getCurrentSchema() : null | string

Returns

nullstring

Get driver name

getDriverName() : null | string
Inherited

Returns

nullstring

{@inheritDoc}

getLastGeneratedValue($name = null) : string

Parameters

$name

Returns

string

getProfiler()

getProfiler() : null | \Zend\Db\Adapter\Profiler\ProfilerInterface
Inherited

Returns

null\Zend\Db\Adapter\Profiler\ProfilerInterface

Get resource

getResource() : resource
Inherited
inherited_from \Zend\Db\Adapter\Driver\ConnectionInterface::getResource()

Returns

resource

Checks whether the connection is in transaction state.

inTransaction() : boolean
Inherited

Returns

boolean

{@inheritDoc}

isConnected() 

{@inheritDoc}

rollback() 

setConnectionParameters()

setConnectionParameters(array $connectionParameters) : \Zend\Db\Adapter\Driver\Pgsql\Connection
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$connectionParameters

array

Returns

\Zend\Db\Adapter\Driver\Pgsql\Connection

Set driver

setDriver(\Zend\Db\Adapter\Driver\Pgsql\Pgsql $driver) : \Zend\Db\Adapter\Driver\Pgsql\Connection
fluent This method is part of a fluent interface and will return the same instance

Parameters

$driver

\Zend\Db\Adapter\Driver\Pgsql\Pgsql

Returns

\Zend\Db\Adapter\Driver\Pgsql\Connection

setProfiler()

setProfiler(\Zend\Db\Adapter\Profiler\ProfilerInterface $profiler) : \Zend\Db\Adapter\Driver\Pgsql\Connection
Inherited
inherited_from \Zend\Db\Adapter\Profiler\ProfilerAwareInterface::setProfiler()
fluent This method is part of a fluent interface and will return the same instance

Parameters

$profiler

Returns

\Zend\Db\Adapter\Driver\Pgsql\Connection

setType()

setType(integer|null $type) : \Zend\Db\Adapter\Driver\Pgsql\Connection
fluent This method is part of a fluent interface and will return the same instance

Parameters

$type

integernull

Returns

\Zend\Db\Adapter\Driver\Pgsql\Connection

Get Connection String

getConnectionString() : string

Returns

string

 Properties

 

$connectionParameters

$connectionParameters : array

Default

array()
 

$driver

$driver : \Zend\Db\Adapter\Driver\Pgsql\Pgsql

Default

null
 

$driverName

$driverName : string | null

Default

 

$inTransaction

$inTransaction : boolean

Default

false
 

Nested transactions count.

$nestedTransactionsCount : integer

Default

0
 

$profiler

$profiler : \Zend\Db\Adapter\Profiler\ProfilerInterface | null

Default

 

$resource

$resource : resource | null

Default

 

PostgreSQL connection type

$type : null | integer

Default

null