Methods

Constructor

__construct(resource | array | null $connectionInfo) 

Parameters

$connectionInfo

resourcearraynull

Begin transaction

beginTransaction() : void

Commit

commit() : void

Disconnect

disconnect() : void

Execute

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

Get current schema

getCurrentSchema() : null | string

Returns

nullstring

Get last generated id

getLastGeneratedValue(null $name) : string

Parameters

$name

null

Ignored

Returns

string

Get resource

getResource() : resource

Returns

resource

In transaction

inTransaction() : bool

Returns

bool

Is connected

isConnected() : bool

Returns

bool

Rollback

rollback() : void

Set connection parameters

setConnectionParameters(array $connectionParameters) : \Zend\Db\Adapter\Driver\Pgsql\Connection

Parameters

$connectionParameters

array

Returns

Set driver

setDriver(\Zend\Db\Adapter\Driver\Pgsql\Pgsql $driver) : \Zend\Db\Adapter\Driver\Pgsql\Connection

setProfiler()

setProfiler(\Zend\Db\Adapter\Profiler\ProfilerInterface $profiler) : \Zend\Db\Adapter\Driver\Pgsql\Connection

Set resource

setResource(resource $resource) : \Zend\Db\Adapter\Driver\Pgsql\Connection

Parameters

$resource

resource

Returns

Get Connection String

getConnectionString() : string

Returns

string

 Properties

 

Connection parameters

$connectionParameters : array

   

In transaction

$inTransaction : bool

   

$resource

$resource : resource