classSchemaAnalyzer
final class SchemaAnalyzer
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.
Resolves declaration SQL into immutable state used by statement binding.
Methods§
public function __construct(
private Dialect $dialect,
?string $defaultSchema = null,
?string $grammarVersion = null,
)Selects a language, release and default declaration namespace.
Parameters
$dialect | Dialect | |
$defaultSchema | ?string | |
$grammarVersion | ?string |
Calls 2
- method-call Dialect::platform() line 29
- new DialectParser line 30
public function analyze(string ...$sql): SchemaBuilds a closed table state without retaining parser nodes or SQL text.
Parameters
$sql | string |
Returns
Throws
SemanticException When state facts conflict or cannot be resolvedAnalysisException When declarations are outside the selected languageTest cases 1
Called from 1
Calls 2
- method-call SchemaAnalyzer::read() line 41
- new AnalysisException line 43
public function read(string ...$sql): SchemaCompatibility path preserving the original parser exception contract.
Parameters
$sql | string |
Returns
Throws
SemanticException When state facts conflict or cannot be resolvedSourceException When declarations are outside the selected languageTest cases 1
Called from 2
Calls 8
- function-call
array_pushline 56 - method-call DialectParser::parseScript() line 56
- method-call Dialect::platform() line 58
- method-call DialectParser::version() line 58
- method-call SchemaReader::read() line 59
- new SchemaReader line 59
- new Identifiers line 59
- new Schema line 61
Private surface 3§
Implementation details, listed for orientation only.
private DialectParser $parserprivate string $defaultSchemaprivate Dialect $dialectTest cases 8§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 6
ColumnPropertiesTestcallsSchemaChangesTestcallsColumnGenerationTestcallsGenerationKindTestcallsInvariantTestcallsSchemaTestcalls