summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-05-05 18:09:53 +0200
committerRobin Appelman <robin@icewind.nl>2021-06-14 16:11:25 +0200
commit9774fb1573d30e79eb57f8956f64b13b52b7dee9 (patch)
treef7431f41db9d421773ff23381c943c82e0471e51 /lib/public
parente198dc1b200f3ade93498e0ea7b468c87d46748a (diff)
downloadnextcloud-server-9774fb1573d30e79eb57f8956f64b13b52b7dee9.tar.gz
nextcloud-server-9774fb1573d30e79eb57f8956f64b13b52b7dee9.zip
use searchoperation for storage filter instead of db expression
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Files/Cache/ICache.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/public/Files/Cache/ICache.php b/lib/public/Files/Cache/ICache.php
index 9e11831aae7..15b750ce7f0 100644
--- a/lib/public/Files/Cache/ICache.php
+++ b/lib/public/Files/Cache/ICache.php
@@ -22,8 +22,7 @@
*/
namespace OCP\Files\Cache;
-use OCP\DB\QueryBuilder\ICompositeExpression;
-use OCP\DB\QueryBuilder\IQueryBuilder;
+use OCP\Files\Search\ISearchOperator;
use OCP\Files\Search\ISearchQuery;
/**
@@ -270,14 +269,13 @@ interface ICache {
/**
* Get the query expression required to filter files within this storage.
*
- * In the most basic case this is just `$builder->expr()->eq('storage', $this->getNumericStorageId())`
+ * In the most basic case this is just comparing the storage id
* but storage wrappers can add additional expressions to filter down things further
*
- * @param IQueryBuilder $builder
- * @return string|ICompositeExpression
+ * @return ISearchOperator
* @since 22.0.0
*/
- public function getQueryFilterForStorage(IQueryBuilder $builder);
+ public function getQueryFilterForStorage(): ISearchOperator;
/**
* Construct a cache entry from a search result row *if* the entry belongs to this storage.