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

 Methods

Constructor

__construct(array|resource|null $connectionParameters = null

Parameters

$connectionParameters

arrayresourcenull

(ibm_db2 connection resource)

Exceptions

\Zend\Db\Adapter\Exception\InvalidArgumentException

{@inheritDoc}

beginTransaction() 

{@inheritDoc}

commit() 

{@inheritDoc}

connect() 

Disconnect

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

Disconnect

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

{@inheritDoc}

execute($sql) 

Parameters

$sql

Get connection parameters

getConnectionParameters() : array
Inherited

Returns

array

{@inheritDoc}

getCurrentSchema() 

Get driver name

getDriverName() : null | string
Inherited

Returns

nullstring

{@inheritDoc}

getLastGeneratedValue($name = null

Parameters

$name

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() 

Rollback

rollback() : \Zend\Db\Adapter\Driver\IbmDb2\Connection

Returns

\Zend\Db\Adapter\Driver\IbmDb2\Connection

setConnectionParameters()

setConnectionParameters(array $connectionParameters) : \Zend\Db\Adapter\Driver\IbmDb2\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\IbmDb2\Connection

Set driver

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

Parameters

$driver

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

Returns

\Zend\Db\Adapter\Driver\IbmDb2\Connection

setProfiler()

setProfiler(\Zend\Db\Adapter\Profiler\ProfilerInterface $profiler) : \Zend\Db\Adapter\Driver\IbmDb2\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\IbmDb2\Connection

setResource()

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

Parameters

$resource

resource

DB2 resource

Returns

\Zend\Db\Adapter\Driver\IbmDb2\Connection

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

isI5() : boolean

Returns

boolean

 Properties

 

$connectionParameters

$connectionParameters : array

Default

array()
 

$driver

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

Default

null
 

$driverName

$driverName : string | null

Default

 

i5 OS

$i5 : boolean

Default

 

$inTransaction

$inTransaction : boolean

Default

false
 

Nested transactions count.

$nestedTransactionsCount : integer

Default

0
 

Previous autocommit set

$prevAutocommit : mixed

Default

 

$profiler

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

Default

 

$resource

$resource : resource | null

Default