summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-08-10 21:41:32 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-08-10 21:41:32 +0200
commitbfb9a8e58e1a8d613a7eaf0c3422e079abfcacb9 (patch)
tree985841ed4957413e205a668e99071203325b505f /lib/public
parentc2856c05aa9cbdc3adddea127a8588183647ee0a (diff)
parente6eb74958fd9779362fbde788cbfac982783abc0 (diff)
downloadnextcloud-server-bfb9a8e58e1a8d613a7eaf0c3422e079abfcacb9.tar.gz
nextcloud-server-bfb9a8e58e1a8d613a7eaf0c3422e079abfcacb9.zip
Merge pull request #18175 from owncloud/automatic-db-prefix-query-builder
Automatic db prefix query builder
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/db/querybuilder/iquerybuilder.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/db/querybuilder/iquerybuilder.php b/lib/public/db/querybuilder/iquerybuilder.php
index 09d5d199bef..3fc07af1a47 100644
--- a/lib/public/db/querybuilder/iquerybuilder.php
+++ b/lib/public/db/querybuilder/iquerybuilder.php
@@ -27,6 +27,15 @@ namespace OCP\DB\QueryBuilder;
*/
interface IQueryBuilder {
/**
+ * Enable/disable automatic prefixing of table names with the oc_ prefix
+ *
+ * @param bool $enabled If set to true table names will be prefixed with the
+ * owncloud database prefix automatically.
+ * @since 8.2.0
+ */
+ public function automaticTablePrefix($enabled);
+
+ /**
* Gets an ExpressionBuilder used for object-oriented construction of query expressions.
* This producer method is intended for convenient inline usage. Example:
*