summaryrefslogtreecommitdiffstats
path: root/lib/server.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/server.php')
-rw-r--r--lib/server.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/server.php b/lib/server.php
index 316ed39665b..a5288fa1482 100644
--- a/lib/server.php
+++ b/lib/server.php
@@ -170,4 +170,12 @@ class Server extends SimpleContainer implements IServerContainer {
return \OC::$session;
}
+ /**
+ * Returns the current session
+ *
+ * @return \OCP\IDBConnection
+ */
+ function getDatabaseConnection() {
+ return \OC_DB::getConnection();
+ }
}