diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-09-10 13:07:16 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-10-22 12:26:43 +0200 |
commit | 72f99f5041fc4b217a4a5c3683444ee86d3ac878 (patch) | |
tree | e86ce5e62da3890505047f0d6954f5963d8fd6e0 /lib/private/db/connection.php | |
parent | b7718bc212e7579ad15c51d48447ff4eca44bff6 (diff) | |
download | nextcloud-server-72f99f5041fc4b217a4a5c3683444ee86d3ac878.tar.gz nextcloud-server-72f99f5041fc4b217a4a5c3683444ee86d3ac878.zip |
Remove \OC\DB\ConnectionWrapper, have \OC\DB\Connection implement \OCP\IDBConnection directly instead
Diffstat (limited to 'lib/private/db/connection.php')
-rw-r--r-- | lib/private/db/connection.php | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/private/db/connection.php b/lib/private/db/connection.php index b7981fcd691..f91175511b0 100644 --- a/lib/private/db/connection.php +++ b/lib/private/db/connection.php @@ -11,8 +11,9 @@ use Doctrine\DBAL\Driver; use Doctrine\DBAL\Configuration; use Doctrine\DBAL\Cache\QueryCacheProfile; use Doctrine\Common\EventManager; +use OCP\IDBConnection; -class Connection extends \Doctrine\DBAL\Connection { +class Connection extends \Doctrine\DBAL\Connection implements IDBConnection { /** * @var string $tablePrefix */ @@ -185,13 +186,4 @@ class Connection extends \Doctrine\DBAL\Connection { protected function replaceTablePrefix($statement) { return str_replace( '*PREFIX*', $this->tablePrefix, $statement ); } - - public function enableQueryStatementCaching() { - $this->cachingQueryStatementEnabled = true; - } - - public function disableQueryStatementCaching() { - $this->cachingQueryStatementEnabled = false; - $this->preparedQueries = array(); - } } |