Zend\Db\Adapter\Driver\Pdo\Pdo
Synopsis
class Pdo
implements
DriverInterface,DriverFeatureInterface,ProfilerAwareInterface
{
- // constants
- const FEATURES_DEFAULT = 'default';
- // members
- protected Connection $connection;
- protected Statement $statementPrototype;
- protected Result $resultPrototype;
- protected array $features;
- // methods
- public void __construct()
- public Pdo setProfiler()
- public ProfilerInterface getProfiler()
- public Pdo registerConnection()
- public void registerStatementPrototype()
- public void registerResultPrototype()
- public Pdo addFeature()
- public Pdo setupDefaultFeatures()
- public AbstractFeature|false getFeature()
- public string getDatabasePlatformName()
- public void checkEnvironment()
- public Connection getConnection()
- public Statement createStatement()
- public Result createResult()
- public array getPrepareType()
- public string formatParameterName()
- public mixed getLastGeneratedValue()
Hierarchy
Implements
Constants
Name | Value |
---|---|
FEATURES_DEFAULT | 'default' |
PARAMETERIZATION_POSITIONAL | 'positional' |
PARAMETERIZATION_NAMED | 'named' |
NAME_FORMAT_CAMELCASE | 'camelCase' |
NAME_FORMAT_NATURAL | 'natural' |
Members
protected
- $connection — Zend\Db\Adapter\Driver\Pdo\Connection
- $features — array
- $resultPrototype — Zend\Db\Adapter\Driver\Pdo\Result
- $statementPrototype — Zend\Db\Adapter\Driver\Pdo\Statement
Methods
public
- __construct()
- addFeature() — Add feature
- checkEnvironment() — Check environment
- createResult()
- createStatement()
- formatParameterName()
- getConnection()
- getDatabasePlatformName() — Get database platform name
- getFeature() — Get feature
- getLastGeneratedValue()
- getPrepareType()
- getProfiler()
- registerConnection() — Register connection
- registerResultPrototype() — Register result prototype
- registerStatementPrototype() — Register statement prototype
- setProfiler()
- setupDefaultFeatures() — Setup the default features for Pdo