Methods

Constructor

__construct(array | resource | null $connectionParameters) 

Parameters

$connectionParameters

arrayresourcenull

(ibm_db2 connection resource)

Exceptions

\Zend\Db\Adapter\Exception\InvalidArgumentException

Execute

execute(string $sql) : \Zend\Db\Adapter\Driver\IbmDb2\Result

Parameters

$sql

string

Returns

getConnectionParameters()

getConnectionParameters() : array

Returns

array

Get current schema

getCurrentSchema() : string

Returns

string

Get last generated id

getLastGeneratedValue(null $name) : integer

Parameters

$name

null

Ignored

Returns

integer

Get resource

getResource() : mixed

Returns

mixed

Is connected

isConnected() : bool

Returns

bool

setConnectionParameters()

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

Parameters

$connectionParameters

array

Returns

Set driver

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

setProfiler()

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

setResource()

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

Parameters

$resource

resource

DB2 resource

Returns

 Properties

 

$connectionParameters

$connectionParameters : array

     

$resource

$resource : resource