summaryrefslogtreecommitdiffstats
path: root/lib/private/appframework/db/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/appframework/db/db.php')
-rw-r--r--lib/private/appframework/db/db.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/private/appframework/db/db.php b/lib/private/appframework/db/db.php
index d05cd44b54c..529962002ac 100644
--- a/lib/private/appframework/db/db.php
+++ b/lib/private/appframework/db/db.php
@@ -46,6 +46,24 @@ class Db implements IDb {
}
/**
+ * Gets the ExpressionBuilder for the connection.
+ *
+ * @return \OCP\DB\IExpressionBuilder
+ */
+ public function getExpressionBuilder() {
+ return $this->connection->getExpressionBuilder();
+ }
+
+ /**
+ * Gets the ExpressionBuilder for the connection.
+ *
+ * @return \OCP\DB\IQueryBuilder
+ */
+ public function getQueryBuilder() {
+ return $this->connection->getQueryBuilder();
+ }
+
+ /**
* Used to abstract the ownCloud database access away
*
* @param string $sql the sql query with ? placeholder for params