feat(dbal): Add spawnColumns

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
pull/63176/head
Carl Schwan 1 week ago
parent e580d3bd72
commit 7c6a692669
No known key found for this signature in database
GPG Key ID: 02325448204E452A
  1. 5
      lib/private/DB/Schema/Index.php
  2. 9
      lib/public/DB/Schema/IIndex.php

@ -60,6 +60,11 @@ class Index implements IIndex {
return $this->index->hasColumnAtPosition($name, $position);
}
#[\Override]
public function spansColumns(array $columnNames): bool {
return $this->index->spansColumns($columnNames);
}
/**
* Forwards any method not declared on IIndex to the wrapped Doctrine
* DBAL index, e.g. mutators like `addFlag()` or `removeFlag()` that are

@ -62,4 +62,13 @@ interface IIndex {
* @since 35.0.0
*/
public function hasColumnAtPosition(string $name, int $position = 0): bool;
/**
* Returns whether the given column names exactly match the columns this index spans,
* regardless of order.
*
* @param list<non-empty-lowercase-string> $columnNames
* @since 35.0.0
*/
public function spansColumns(array $columnNames): bool;
}

Loading…
Cancel
Save