Methods

Constructor

__construct(array | resource | null $connectionParameters) 

Parameters

$connectionParameters

arrayresourcenull

(ibm_db2 connection resource)

Exceptions

\Zend\Db\Adapter\Exception\InvalidArgumentException

Connect

connect() : \Zend\Db\Adapter\Driver\IbmDb2\self

Returns

\Zend\Db\Adapter\Driver\IbmDb2\self

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) : int

Parameters

$name

null

Ignored

Returns

int

Get resource

getResource() : mixed

Returns

mixed

In transaction

inTransaction() : bool

Returns

bool

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

Determine if the OS is OS400 (AS400, IBM i)

isI5() : bool

Returns

bool

 Properties

 

$connectionParameters

$connectionParameters : array

   

i5 OS

$i5 : bool

 

In transaction

$inTransaction : bool

 

Previous autocommit set

$prevAutocommit : mixed

   

$resource

$resource : resource