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\ResultInterface

Parameters

$sql

string

Returns

Get connection parameters

getConnectionParameters() : array
Inherited

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

Returns

array

Get current schema

getCurrentSchema() : string

Returns

string

Get driver name

getDriverName() : null | string
Inherited

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

Returns

nullstring

Get last generated id

getLastGeneratedValue(null $name) : int

Parameters

$name

null

Ignored

Returns

int

getProfiler()

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

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

Returns

Get resource

getResource() : resource
Inherited

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

Returns

resource

Checks whether the connection is in transaction state.

inTransaction() : boolean
Inherited

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

Returns

boolean

Is connected

isConnected() : bool

Returns

bool

setConnectionParameters()

setConnectionParameters(array $connectionParameters) : \Zend\Db\Adapter\Driver\self
Inherited

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

Parameters

$connectionParameters

array

Returns

\Zend\Db\Adapter\Driver\self

Set driver

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

Parameters

Returns

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

setProfiler()

setProfiler(\Zend\Db\Adapter\Profiler\ProfilerInterface $profiler) : \Zend\Db\Adapter\Driver\self
Inherited

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

Parameters

Returns

\Zend\Db\Adapter\Driver\self

setResource()

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

Parameters

$resource

resource

DB2 resource

Returns

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

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

isI5() : bool

Returns

bool

 Properties

 

$connectionParameters

$connectionParameters : array
Inherited

inherited_from \Zend\Db\Adapter\Driver\AbstractConnection::$$connectionParameters
   

$driverName

$driverName : string | null
Inherited

inherited_from \Zend\Db\Adapter\Driver\AbstractConnection::$$driverName
 

i5 OS

$i5 : bool

 

$inTransaction

$inTransaction : boolean
Inherited

inherited_from \Zend\Db\Adapter\Driver\AbstractConnection::$$inTransaction
 

Nested transactions count.

$nestedTransactionsCount : integer
Inherited

inherited_from \Zend\Db\Adapter\Driver\AbstractConnection::$$nestedTransactionsCount
 

Previous autocommit set

$prevAutocommit : mixed

 

$profiler

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

inherited_from \Zend\Db\Adapter\Driver\AbstractConnection::$$profiler
 

$resource

$resource : resource | null
Inherited

inherited_from \Zend\Db\Adapter\Driver\AbstractConnection::$$resource