Methods

Constructor

__construct(array | resource $connectionInfo) 

Parameters

$connectionInfo

arrayresource

Exceptions

\Zend\Db\Adapter\Exception\InvalidArgumentException

Execute

execute(string $sql) : mixed

Parameters

$sql

string

Exceptions

\Zend\Db\Adapter\Exception\RuntimeException

Returns

mixed

Get connection parameters

getConnectionParameters() : array

Returns

array

Get current schema

getCurrentSchema() : string

Returns

string

Get last generated id

getLastGeneratedValue(string $name) : mixed

Parameters

$name

string

Returns

mixed

Get resource

getResource() : resource

Returns

resource

In transaction

inTransaction() : bool

Returns

bool

Is connected

isConnected() : bool

Returns

bool

Prepare

prepare(string $sql) : string

Parameters

$sql

string

Returns

string

Set connection parameters

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

Parameters

$connectionParameters

array

Returns

Set driver

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

setProfiler()

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

Set resource

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

 Properties

 

$connectionParameters

$connectionParameters : array

   

$inTransaction

$inTransaction : bool

   

$resource

$resource : resource