upgrade zend (#1559)
[openemr.git] / vendor / zendframework / zend-db / src / Adapter / Driver / DriverInterface.php
blob615dbb729fe645c6b0323d3dd14d86eec77bc366
1 <?php
2 /**
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
8 */
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';
19 /**
20 * Get database platform name
22 * @param string $nameFormat
23 * @return string
25 public function getDatabasePlatformName($nameFormat = self::NAME_FORMAT_CAMELCASE);
27 /**
28 * Check environment
30 * @return bool
32 public function checkEnvironment();
34 /**
35 * Get connection
37 * @return ConnectionInterface
39 public function getConnection();
41 /**
42 * Create statement
44 * @param string|resource $sqlOrResource
45 * @return StatementInterface
47 public function createStatement($sqlOrResource = null);
49 /**
50 * Create result
52 * @param resource $resource
53 * @return ResultInterface
55 public function createResult($resource);
57 /**
58 * Get prepare type
60 * @return string
62 public function getPrepareType();
64 /**
65 * Format parameter name
67 * @param string $name
68 * @param mixed $type
69 * @return string
71 public function formatParameterName($name, $type = null);
73 /**
74 * Get last generated value
76 * @return mixed
78 public function getLastGeneratedValue();