interfacePlatform
interface Platform
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.
The concrete parsing and semantic behavior required by core binding.
Methods§
public function parser(?string $version = null): SqlParserConfigures a parser for the requested release.
Parameters
$version | ?string |
Returns
SqlParserpublic function values(string $version): ValueReaderSupplies statement construction data for the resolved grammar release.
Parameters
$version | string |
Returns
public function defaultSchema(): stringSupplies the unqualified declaration namespace.
Returns
stringpublic function statementNames(): array{string, string}Returns
array{string, string} Root and statement grammar namespublic function syntax(): SyntaxRulesSupplies the configured grammar vocabulary.
Returns
public function schema(): SchemaRulesSupplies declaration syntax and constraint semantics.
Returns
public function query(): QueryRulesSupplies query syntax interpretation.
Returns
Test cases 13§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 8
PlatformTest::testDefaultSchemaUsesTheLanguageNamespacecallsPlatformTest::testNamesDecodeQuotedIdentifierscallsPlatformTest::testParserAcceptsAnApplicationImplementationcallsPlatformTest::testQueryKeepsProjectionOrdercallsPlatformTest::testSchemaKeepsDeclarationscallsPlatformTest::testStatementNamesIdentifyTheParserRootcallsPlatformTest::testSyntaxRecognizesSelectBodycallsPlatformTest::testTypesRetainDialectIdentitycalls
Other tests reaching this symbol 5
Relations§
Implemented by 3
Type declarations 4
- type SqlSemantics\Platform\MySql\Dialect packages/sql-semantics-mysql/src/Dialect.php:22
- type SqlSemantics\Platform\PostgreSql\Dialect packages/sql-semantics-postgres/src/Dialect.php:22
- type SqlSemantics\Platform\Sqlite\Dialect packages/sql-semantics-sqlite/src/Dialect.php:22
- type SqlSemantics\Core\Dialect packages/sql-semantics/src/Core/Dialect.php:18