package Default

 Methods

Check environment

checkEnvironment() : boolean

Returns

boolean

Create result

createResult(resource $resource) : \Zend\Db\Adapter\Driver\ResultInterface

Parameters

$resource

resource

Returns

\Zend\Db\Adapter\Driver\ResultInterface

Create statement

createStatement(string|resource $sqlOrResource = null) : \Zend\Db\Adapter\Driver\StatementInterface

Parameters

$sqlOrResource

stringresource

Returns

\Zend\Db\Adapter\Driver\StatementInterface

Format parameter name

formatParameterName(string $name, mixed $type = null) : string

Parameters

$name

string

$type

mixed

Returns

string

Get connection

getConnection() : \Zend\Db\Adapter\Driver\ConnectionInterface

Returns

\Zend\Db\Adapter\Driver\ConnectionInterface

Get database platform name

getDatabasePlatformName(string $nameFormat = self::NAME_FORMAT_CAMELCASE) : string

Parameters

$nameFormat

string

Returns

string

Get last generated value

getLastGeneratedValue() : mixed

Returns

mixed

Get prepare type

getPrepareType() : array

Returns

array

 Constants

 

NAME_FORMAT_CAMELCASE

NAME_FORMAT_CAMELCASE = 'camelCase' 
 

NAME_FORMAT_NATURAL

NAME_FORMAT_NATURAL = 'natural' 
 

PARAMETERIZATION_NAMED

PARAMETERIZATION_NAMED = 'named' 
 

PARAMETERIZATION_POSITIONAL

PARAMETERIZATION_POSITIONAL = 'positional'