Class Pdo

Summary

Fully Qualified Name: Zend\Db\Adapter\Driver\Pdo\Pdo
Implements: DriverInterface, DriverFeatureInterface, ProfilerAwareInterface

Description

Methods

Name Description Defined By
__construct() Pdo
addFeature() Add feature Pdo
checkEnvironment() Check environment Pdo
createResult() Pdo
createStatement() Pdo
formatParameterName() Pdo
getConnection() Pdo
getDatabasePlatformName() Get database platform name Pdo
getFeature() Get feature Pdo
getLastGeneratedValue() Pdo
getPrepareType() Pdo
getProfiler() Pdo
registerConnection() Register connection Pdo
registerResultPrototype() Register result prototype Pdo
registerStatementPrototype() Register statement prototype Pdo
setProfiler() Pdo
setupDefaultFeatures() Setup the default features for Pdo Pdo

Method Details

__construct()

Parameter Name Type Description
$connection array|\Connection|\PDO
$statementPrototype null|\Statement
$resultPrototype null|\Result
$features string

Returns:

addFeature()

Add feature

Parameter Name Type Description
$name string
$feature \AbstractFeature

Returns: self Provides a fluent interface

checkEnvironment()

Check environment

Returns:

createResult()

Parameter Name Type Description
$resource resource
$context mixed

Returns: \Result

createStatement()

Parameter Name Type Description
$sqlOrResource string|\PDOStatement

Returns: \Statement

formatParameterName()

Parameter Name Type Description
$name string
$type string|null

Returns: string

getConnection()

Returns: \Connection

getDatabasePlatformName()

Get database platform name

Parameter Name Type Description
$nameFormat string

Returns: string

getFeature()

Get feature

Parameter Name Type Description
$name
$name

Returns: \AbstractFeature|bool

getLastGeneratedValue()

Parameter Name Type Description
$name string|null

Returns: string|null|bool

getPrepareType()

Returns: string

getProfiler()

Returns: null|\Profiler\ProfilerInterface

registerConnection()

Register connection

Parameter Name Type Description
$connection \Connection

Returns: self Provides a fluent interface

registerResultPrototype()

Register result prototype

Parameter Name Type Description
$resultPrototype \Result

Returns:

registerStatementPrototype()

Register statement prototype

Parameter Name Type Description
$statementPrototype \Statement

Returns:

setProfiler()

Parameter Name Type Description
$profiler \Profiler\ProfilerInterface

Returns: self Provides a fluent interface

setupDefaultFeatures()

Setup the default features for Pdo

Returns: self Provides a fluent interface

Top