3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 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 ConnectionInterface
19 public function getCurrentSchema();
26 public function getResource();
31 * @return ConnectionInterface
33 public function connect();
40 public function isConnected();
45 * @return ConnectionInterface
47 public function disconnect();
52 * @return ConnectionInterface
54 public function beginTransaction();
59 * @return ConnectionInterface
61 public function commit();
66 * @return ConnectionInterface
68 public function rollback();
74 * @return ResultInterface
76 public function execute($sql);
79 * Get last generated id
81 * @param null $name Ignored
84 public function getLastGeneratedValue($name = null);