package Default

 Methods

__construct()

__construct(array|\Zend\Db\Adapter\Driver\Pdo\Connection|\PDO $connection, null|\Zend\Db\Adapter\Driver\Pdo\Statement $statementPrototype = null, null|\Zend\Db\Adapter\Driver\Pdo\Result $resultPrototype = null, string $features = self::FEATURES_DEFAULT

Parameters

$connection

array\Zend\Db\Adapter\Driver\Pdo\Connection\PDO

$statementPrototype

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

$resultPrototype

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

$features

string

Add feature

addFeature(string $name, \Zend\Db\Adapter\Driver\Feature\AbstractFeature $feature) : \Zend\Db\Adapter\Driver\Pdo\Pdo
inherited_from \Zend\Db\Adapter\Driver\Feature\DriverFeatureInterface::addFeature()

Parameters

$name

string

$feature

\Zend\Db\Adapter\Driver\Feature\AbstractFeature

Returns

\Zend\Db\Adapter\Driver\Pdo\Pdo

Check environment

checkEnvironment() 
inherited_from \Zend\Db\Adapter\Driver\DriverInterface::checkEnvironment()

Create result

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

Parameters

$resource

resource

$context

mixed

Returns

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

Create statement

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

Parameters

$sqlOrResource

string\PDOStatement

Returns

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

Format parameter name

formatParameterName(string $name, string|null $type = null) : string
inherited_from \Zend\Db\Adapter\Driver\DriverInterface::formatParameterName()

Parameters

$name

string

$type

stringnull

Returns

string

Get connection

getConnection() : \Zend\Db\Adapter\Driver\Pdo\Connection
inherited_from \Zend\Db\Adapter\Driver\DriverInterface::getConnection()

Returns

\Zend\Db\Adapter\Driver\Pdo\Connection

Get database platform name

getDatabasePlatformName(string $nameFormat = self::NAME_FORMAT_CAMELCASE) : string
inherited_from \Zend\Db\Adapter\Driver\DriverInterface::getDatabasePlatformName()

Parameters

$nameFormat

string

Returns

string

Get feature

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

Parameters

$name

Returns

\Zend\Db\Adapter\Driver\Feature\AbstractFeaturefalse

Get last generated value

getLastGeneratedValue($name = null) : mixed
inherited_from \Zend\Db\Adapter\Driver\DriverInterface::getLastGeneratedValue()

Parameters

$name

Returns

mixed

Get prepare type

getPrepareType() : array
inherited_from \Zend\Db\Adapter\Driver\DriverInterface::getPrepareType()

Returns

array

getProfiler()

getProfiler() : null | \Zend\Db\Adapter\Profiler\ProfilerInterface

Returns

null\Zend\Db\Adapter\Profiler\ProfilerInterface

Register connection

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

Parameters

$connection

\Zend\Db\Adapter\Driver\Pdo\Connection

Returns

\Zend\Db\Adapter\Driver\Pdo\Pdo

Register result prototype

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

Parameters

$resultPrototype

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

Register statement prototype

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

Parameters

$statementPrototype

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

setProfiler()

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

Parameters

$profiler

\Zend\Db\Adapter\Profiler\ProfilerInterface

Returns

\Zend\Db\Adapter\Driver\Pdo\Pdo

Setup the default features for Pdo

setupDefaultFeatures() : \Zend\Db\Adapter\Driver\Pdo\Pdo
inherited_from \Zend\Db\Adapter\Driver\Feature\DriverFeatureInterface::setupDefaultFeatures()

Returns

\Zend\Db\Adapter\Driver\Pdo\Pdo

 Properties

 

$connection

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

Default

null
 

$features

$features : array

Default

array()
 

$resultPrototype

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

Default

null
 

$statementPrototype

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

Default

null

 Constants

 

FEATURES_DEFAULT

FEATURES_DEFAULT = 'default' 
const