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

 Methods

Constructor

__construct(array|resource $connectionInfo) 

Parameters

$connectionInfo

arrayresource

Exceptions

\Zend\Db\Adapter\Exception\InvalidArgumentException

{@inheritDoc}

beginTransaction() 

{@inheritDoc}

commit() 

{@inheritDoc}

connect() 

Exceptions

\Zend\Db\Adapter\Exception\RuntimeException

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

Exceptions

\Zend\Db\Adapter\Exception\RuntimeException

Get connection parameters

getConnectionParameters() : array
Inherited

Returns

array

{@inheritDoc}

getCurrentSchema() 

Get driver name

getDriverName() : null | string
Inherited

Returns

nullstring

{@inheritDoc}

getLastGeneratedValue($name = null) : mixed

Parameters

$name

Returns

mixed

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

Prepare

prepare(string $sql) : string

Parameters

$sql

string

Returns

string

{@inheritDoc}

rollback() 

setConnectionParameters()

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

Set driver

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

Parameters

$driver

\Zend\Db\Adapter\Driver\Sqlsrv\Sqlsrv

Returns

\Zend\Db\Adapter\Driver\Sqlsrv\Connection

setProfiler()

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

Set resource

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

Parameters

$resource

resource

Exceptions

\Zend\Db\Adapter\Exception\InvalidArgumentException

Returns

\Zend\Db\Adapter\Driver\Sqlsrv\Connection

 Properties

 

$connectionParameters

$connectionParameters : array

Default

array()
 

$driver

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

Default

null
 

$driverName

$driverName : string | null

Default

 

$inTransaction

$inTransaction : boolean

Default

false
 

Nested transactions count.

$nestedTransactionsCount : integer

Default

0
 

$profiler

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

Default

 

$resource

$resource : resource | null

Default