Methods

__construct()

__construct(array | \Zend\Db\Adapter\Driver\Pdo\Connection | \PDO $connection, \Zend\Db\Adapter\Driver\Pdo\Statement $statementPrototype, \Zend\Db\Adapter\Driver\Pdo\Result $resultPrototype, string $features) 

Parameters

$statementPrototype

null\Zend\Db\Adapter\Driver\Pdo\Statement

$resultPrototype

null\Zend\Db\Adapter\Driver\Pdo\Result

$features

string

Check environment

checkEnvironment() : bool

Returns

bool

Create result

createResult(resource $resource, mixed $context) : \Zend\Db\Adapter\Driver\Pdo\Result

Parameters

$resource

resource

$context

mixed

Returns

Create statement

createStatement(string | \PDOStatement $sqlOrResource) : \Zend\Db\Adapter\Driver\Pdo\Statement

Parameters

$sqlOrResource

string\PDOStatement

Returns

Format parameter name

formatParameterName(string $name, string | null $type) : string

Parameters

$name

string

$type

stringnull

Returns

string

Get database platform name

getDatabasePlatformName(string $nameFormat) : string

Parameters

$nameFormat

string

Returns

string

Get feature

getFeature($name) : \Zend\Db\Adapter\Driver\Feature\AbstractFeature | false

Parameters

$name

Returns

Get last generated value

getLastGeneratedValue() : mixed

Returns

mixed

Get prepare type

getPrepareType() : array

Returns

array

Register connection

registerConnection(\Zend\Db\Adapter\Driver\Pdo\Connection $connection) : \Zend\Db\Adapter\Driver\Pdo\Pdo

Register result prototype

registerResultPrototype(\Zend\Db\Adapter\Driver\Pdo\Result $resultPrototype) 

Parameters

Register statement prototype

registerStatementPrototype(\Zend\Db\Adapter\Driver\Pdo\Statement $statementPrototype) 

Parameters

setProfiler()

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

Setup the default features for Pdo

setupDefaultFeatures() : \Zend\Db\Adapter\Driver\Pdo\Pdo

 Properties

 

$connection

$connection : \Zend\Db\Adapter\Driver\Pdo\Connection

 

$features

$features : array

 

$resultPrototype

$resultPrototype : \Zend\Db\Adapter\Driver\Pdo\Result

 

$statementPrototype

$statementPrototype : \Zend\Db\Adapter\Driver\Pdo\Statement

 Constants

 

FEATURES_DEFAULT

FEATURES_DEFAULT 

const
 

NAME_FORMAT_CAMELCASE

NAME_FORMAT_CAMELCASE 
Inherited

inherited_from \Zend\Db\Adapter\Driver\DriverInterface::NAME_FORMAT_CAMELCASE
 

NAME_FORMAT_NATURAL

NAME_FORMAT_NATURAL 
Inherited

inherited_from \Zend\Db\Adapter\Driver\DriverInterface::NAME_FORMAT_NATURAL
 

PARAMETERIZATION_NAMED

PARAMETERIZATION_NAMED 
Inherited

inherited_from \Zend\Db\Adapter\Driver\DriverInterface::PARAMETERIZATION_NAMED
 

PARAMETERIZATION_POSITIONAL

PARAMETERIZATION_POSITIONAL 
Inherited

inherited_from \Zend\Db\Adapter\Driver\DriverInterface::PARAMETERIZATION_POSITIONAL