classSchemaChanges
final class SchemaChanges
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.
Applies DROP TABLE to the local closed catalog in declaration order.
Methods§
public function __construct(private Identifiers $identifiers, private string $defaultSchema)Selects name resolution policy for the local snapshot.
Parameters
$identifiers | Identifiers | |
$defaultSchema | string |
public function drop(Node $statement, array<string, TableDefinition> &$tables): boolReturns false for other statement kinds; missing unconditional drops fail.
Parameters
$statement | Node | |
$tables | array<string, TableDefinition> |
Returns
boolThrows
SemanticException When a required relation is absentCalled from 1
Calls 7
- function-call
preg_matchline 31 - static-call Tree::text() line 31
- static-call Tree::outer() line 35
- method-call Identifiers::parts() line 36
- function-call
countline 37 - static-call Tree::unsupported() line 38
- new SemanticException line 50
Private surface 2§
Implementation details, listed for orientation only.
private Identifiers $identifiersprivate string $defaultSchemaTest cases 7§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
SchemaChangesTestcalls
Other tests reaching this symbol 6
SchemaAnalyzerTestcallsColumnPropertiesTestcallsColumnGenerationTestcallsGenerationKindTestcallsInvariantTestcallsSchemaTestcalls