package Default

 Methods

__construct()

__construct(\Zend\Db\Adapter\Driver\DriverInterface|array $driver, \Zend\Db\Adapter\Platform\PlatformInterface $platform = null, \Zend\Db\ResultSet\ResultSetInterface $queryResultPrototype = null, \Zend\Db\Adapter\Profiler\ProfilerInterface $profiler = null

Parameters

$driver

\Zend\Db\Adapter\Driver\DriverInterfacearray

$platform

\Zend\Db\Adapter\Platform\PlatformInterface

$queryResultPrototype

\Zend\Db\ResultSet\ResultSetInterface

$profiler

\Zend\Db\Adapter\Profiler\ProfilerInterface

Exceptions

\Zend\Db\Adapter\Exception\InvalidArgumentException

__get()

__get($name) : \Zend\Db\Adapter\Driver\DriverInterface | \Zend\Db\Adapter\Platform\PlatformInterface

Parameters

$name

Exceptions

\Zend\Db\Adapter\Exception\InvalidArgumentException

Returns

\Zend\Db\Adapter\Driver\DriverInterface\Zend\Db\Adapter\Platform\PlatformInterface

Create statement

createStatement(string $initialSql = null, \Zend\Db\Adapter\ParameterContainer $initialParameters = null) : \Zend\Db\Adapter\Driver\StatementInterface

Parameters

$initialSql

string

$initialParameters

\Zend\Db\Adapter\ParameterContainer

Returns

\Zend\Db\Adapter\Driver\StatementInterface

getCurrentSchema()

getCurrentSchema() 

getDriver()

getDriver() : \Zend\Db\Adapter\Driver\DriverInterface
inherited_from \Zend\Db\Adapter\AdapterInterface::getDriver()

Exceptions

\Zend\Db\Adapter\Exception\RuntimeException

Returns

\Zend\Db\Adapter\Driver\DriverInterface

getHelpers()

getHelpers() 

getPlatform()

getPlatform() : \Zend\Db\Adapter\Platform\PlatformInterface
inherited_from \Zend\Db\Adapter\AdapterInterface::getPlatform()

Returns

\Zend\Db\Adapter\Platform\PlatformInterface

getProfiler()

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

Returns

null\Zend\Db\Adapter\Profiler\ProfilerInterface

getQueryResultSetPrototype()

getQueryResultSetPrototype() : \Zend\Db\ResultSet\ResultSetInterface

Returns

\Zend\Db\ResultSet\ResultSetInterface

query() is a convenience function

query(string $sql, string|array|\Zend\Db\Adapter\ParameterContainer $parametersOrQueryMode = self::QUERY_MODE_PREPARE, \Zend\Db\ResultSet\ResultSetInterface $resultPrototype = null) : \Zend\Db\Adapter\Driver\StatementInterface | \Zend\Db\ResultSet\ResultSet

Parameters

$sql

string

$parametersOrQueryMode

stringarray\Zend\Db\Adapter\ParameterContainer

$resultPrototype

\Zend\Db\ResultSet\ResultSetInterface

Exceptions

\Zend\Db\Adapter\Exception\InvalidArgumentException

Returns

\Zend\Db\Adapter\Driver\StatementInterface\Zend\Db\ResultSet\ResultSet

setProfiler()

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

Parameters

$profiler

\Zend\Db\Adapter\Profiler\ProfilerInterface

Returns

\Zend\Db\Adapter\Adapter

createDriver()

createDriver(array $parameters) : \Zend\Db\Adapter\Driver\DriverInterface

Parameters

$parameters

array

Exceptions

\InvalidArgumentException
\Zend\Db\Adapter\Exception\InvalidArgumentException

Returns

\Zend\Db\Adapter\Driver\DriverInterface

createDriverFromParameters()

createDriverFromParameters(array $parameters) : \Zend\Db\Adapter\Driver\DriverInterface
deprecated

Parameters

$parameters

array

Exceptions

\InvalidArgumentException
\Zend\Db\Adapter\Exception\InvalidArgumentException

Returns

\Zend\Db\Adapter\Driver\DriverInterface

createPlatform()

createPlatform($parameters) : \Zend\Db\Adapter\Platform\PlatformInterface

Parameters

$parameters

Returns

\Zend\Db\Adapter\Platform\PlatformInterface

createPlatformFromDriver()

createPlatformFromDriver(\Zend\Db\Adapter\Driver\DriverInterface $driver) : \Zend\Db\Adapter\Platform\PlatformInterface
deprecated

Parameters

$driver

\Zend\Db\Adapter\Driver\DriverInterface

Returns

\Zend\Db\Adapter\Platform\PlatformInterface

createProfiler()

createProfiler($parameters) 

Parameters

$parameters

 Properties

 

$driver

$driver : \Zend\Db\Adapter\Driver\DriverInterface

Default

magic
property
 

$platform

$platform : \Zend\Db\Adapter\Platform\PlatformInterface

Default

magic
property
 

$driver

$driver : \Zend\Db\Adapter\Driver\DriverInterface

Default

null
 

$lastPreparedStatement

$lastPreparedStatement : \Zend\Db\Adapter\Driver\StatementInterface

Default

null
 

$platform

$platform : \Zend\Db\Adapter\Platform\PlatformInterface

Default

null
 

$profiler

$profiler : \Zend\Db\Adapter\Profiler\ProfilerInterface

Default

null
 

$queryResultSetPrototype

$queryResultSetPrototype : \Zend\Db\ResultSet\ResultSetInterface

Default

null

 Constants

 

FUNCTION_FORMAT_PARAMETER_NAME

FUNCTION_FORMAT_PARAMETER_NAME = 'formatParameterName' 
 

FUNCTION_QUOTE_IDENTIFIER

FUNCTION_QUOTE_IDENTIFIER = 'quoteIdentifier' 
 

FUNCTION_QUOTE_VALUE

FUNCTION_QUOTE_VALUE = 'quoteValue' 
 

PREPARE_TYPE_NAMED

PREPARE_TYPE_NAMED = 'named' 
 

Prepare Type Constants

PREPARE_TYPE_POSITIONAL = 'positional' 
 

Query Mode Constants

QUERY_MODE_EXECUTE = 'execute' 
 

QUERY_MODE_PREPARE

QUERY_MODE_PREPARE = 'prepare' 
 

VALUE_QUOTE_SEPARATOR

VALUE_QUOTE_SEPARATOR = 'quoteSeparator'