3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Db\Adapter\Driver
;
12 interface DriverInterface
14 const PARAMETERIZATION_POSITIONAL
= 'positional';
15 const PARAMETERIZATION_NAMED
= 'named';
16 const NAME_FORMAT_CAMELCASE
= 'camelCase';
17 const NAME_FORMAT_NATURAL
= 'natural';
20 * Get database platform name
22 * @param string $nameFormat
25 public function getDatabasePlatformName($nameFormat = self
::NAME_FORMAT_CAMELCASE
);
32 public function checkEnvironment();
37 * @return ConnectionInterface
39 public function getConnection();
44 * @param string|resource $sqlOrResource
45 * @return StatementInterface
47 public function createStatement($sqlOrResource = null);
52 * @param resource $resource
53 * @return ResultInterface
55 public function createResult($resource);
62 public function getPrepareType();
65 * Format parameter name
71 public function formatParameterName($name, $type = null);
74 * Get last generated value
78 public function getLastGeneratedValue();