diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-09-16 11:39:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-16 11:39:58 +0200 |
commit | ff0cab5956c289bad60db54716b148c8879566a4 (patch) | |
tree | 380f48666b1400f90beab4a6394eda4b287d7dca /lib/private/DB | |
parent | 52f4b88f8d0581e3ec8e59854b78bd006ab0f80f (diff) | |
parent | da59fd4389bedd6b643f277b5e411872137569b3 (diff) | |
download | nextcloud-server-ff0cab5956c289bad60db54716b148c8879566a4.tar.gz nextcloud-server-ff0cab5956c289bad60db54716b148c8879566a4.zip |
Merge pull request #47852 from nextcloud/sharding-code-fixes
Diffstat (limited to 'lib/private/DB')
-rw-r--r-- | lib/private/DB/QueryBuilder/ExtendedQueryBuilder.php | 4 | ||||
-rw-r--r-- | lib/private/DB/QueryBuilder/QueryBuilder.php | 6 | ||||
-rw-r--r-- | lib/private/DB/QueryBuilder/Sharded/ShardedQueryBuilder.php | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/lib/private/DB/QueryBuilder/ExtendedQueryBuilder.php b/lib/private/DB/QueryBuilder/ExtendedQueryBuilder.php index c40cadfbdb5..f928132a123 100644 --- a/lib/private/DB/QueryBuilder/ExtendedQueryBuilder.php +++ b/lib/private/DB/QueryBuilder/ExtendedQueryBuilder.php @@ -289,12 +289,12 @@ abstract class ExtendedQueryBuilder implements IQueryBuilder { return $this->builder->executeStatement($connection); } - public function hintShardKey(string $column, mixed $value, bool $overwrite = false) { + public function hintShardKey(string $column, mixed $value, bool $overwrite = false): self { $this->builder->hintShardKey($column, $value, $overwrite); return $this; } - public function runAcrossAllShards() { + public function runAcrossAllShards(): self { $this->builder->runAcrossAllShards(); return $this; } diff --git a/lib/private/DB/QueryBuilder/QueryBuilder.php b/lib/private/DB/QueryBuilder/QueryBuilder.php index 6cdf97b01e9..3ee41773330 100644 --- a/lib/private/DB/QueryBuilder/QueryBuilder.php +++ b/lib/private/DB/QueryBuilder/QueryBuilder.php @@ -560,7 +560,7 @@ class QueryBuilder implements IQueryBuilder { return $this; } - private function addOutputColumns(array $columns) { + private function addOutputColumns(array $columns): void { foreach ($columns as $column) { if (is_array($column)) { $this->addOutputColumns($column); @@ -1370,11 +1370,11 @@ class QueryBuilder implements IQueryBuilder { return $this->connection->escapeLikeParameter($parameter); } - public function hintShardKey(string $column, mixed $value, bool $overwrite = false) { + public function hintShardKey(string $column, mixed $value, bool $overwrite = false): self { return $this; } - public function runAcrossAllShards() { + public function runAcrossAllShards(): self { // noop return $this; } diff --git a/lib/private/DB/QueryBuilder/Sharded/ShardedQueryBuilder.php b/lib/private/DB/QueryBuilder/Sharded/ShardedQueryBuilder.php index e7bc70ce440..e5b66470de0 100644 --- a/lib/private/DB/QueryBuilder/Sharded/ShardedQueryBuilder.php +++ b/lib/private/DB/QueryBuilder/Sharded/ShardedQueryBuilder.php @@ -296,7 +296,7 @@ class ShardedQueryBuilder extends ExtendedQueryBuilder { ]; } - public function hintShardKey(string $column, mixed $value, bool $overwrite = false) { + public function hintShardKey(string $column, mixed $value, bool $overwrite = false): self { if ($overwrite) { $this->primaryKeys = []; $this->shardKeys = []; @@ -310,7 +310,7 @@ class ShardedQueryBuilder extends ExtendedQueryBuilder { return $this; } - public function runAcrossAllShards() { + public function runAcrossAllShards(): self { $this->allShards = true; return $this; } |