Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Db / Adapter / Driver / ConnectionInterface.php
blob1beb4fb2a2b2fa985bc370ba92b352da4b669beb
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-2013 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 ConnectionInterface
14 /**
15 * Get current schema
17 * @return string
19 public function getCurrentSchema();
21 /**
22 * Get resource
24 * @return mixed
26 public function getResource();
28 /**
29 * Connect
31 * @return ConnectionInterface
33 public function connect();
35 /**
36 * Is connected
38 * @return bool
40 public function isConnected();
42 /**
43 * Disconnect
45 * @return ConnectionInterface
47 public function disconnect();
49 /**
50 * Begin transaction
52 * @return ConnectionInterface
54 public function beginTransaction();
56 /**
57 * Commit
59 * @return ConnectionInterface
61 public function commit();
63 /**
64 * Rollback
66 * @return ConnectionInterface
68 public function rollback();
70 /**
71 * Execute
73 * @param string $sql
74 * @return ResultInterface
76 public function execute($sql);
78 /**
79 * Get last generated id
81 * @param null $name Ignored
82 * @return int
84 public function getLastGeneratedValue($name = null);