summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-08-10 16:20:42 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-08-10 16:20:42 +0200
commit5fea6f753e27939a693041288d46115154dac051 (patch)
tree01c646b534f9c598f1375d4b78fb5e39ad44d6db /lib/public
parent15e16d335db5771778477e944d4e63ac807382b9 (diff)
downloadnextcloud-server-5fea6f753e27939a693041288d46115154dac051.tar.gz
nextcloud-server-5fea6f753e27939a693041288d46115154dac051.zip
Automatically prefix table names with *PREFIX* unless specified
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:
*