classForeignKeyTokens
final class ForeignKeyTokens
Restricted visibility: declared "@visibility ZtdQuery\Platform\Sqlite". Code outside that scope must not name this declaration.
Locates table bodies and foreign-key syntax tokens.
Methods§
public function tableBody(string $sql): ?stringLocates table bodies and foreign-key syntax tokens.
Parameters
$sql | string |
Returns
?stringTest cases 1
Called from 1
Calls 4
- static-call SqlTokenStream::tokenize() line 24
- static-call SqliteLexerProfile::create() line 24
- static-call ForeignKeyTokens::isSymbol() line 43
- function-call
substrline 49
public static function keywordIndex(list<SqlToken> $tokens, string $keyword): ?intParameters
$tokens | list<SqlToken> | |
$keyword | string |
Returns
?intTest cases 1
Called from 2
- static-call ZtdQuery\Platform\Sqlite\Schema\Key\ForeignKeyEntryParser::parseEntry() packages/ztd-query-sqlite/src/Schema/Key/ForeignKeyEntryParser.php:28
- static-call ZtdQuery\Platform\Sqlite\Schema\Key\ForeignKeyEntryParser::foreignKeyColumns() packages/ztd-query-sqlite/src/Schema/Key/ForeignKeyEntryParser.php:74
public static function symbolIndex(list<SqlToken> $tokens, string $symbol, int $start): ?intParameters
$tokens | list<SqlToken> | |
$symbol | string | |
$start | int |
Returns
?intTest cases 1
Called from 1
Calls 1
- static-call ForeignKeyTokens::isSymbol() line 76
public static function isSymbol(?SqlToken $token, string $symbol): boolLocates table bodies and foreign-key syntax tokens.
Parameters
$token | ?SqlToken | |
$symbol | string |
Returns
boolTest cases 1
Called from 5
- static-call ZtdQuery\Platform\Sqlite\Schema\Key\ForeignKeyEntryParser::referencedRelation() packages/ztd-query-sqlite/src/Schema/Key/ForeignKeyEntryParser.php:104
- static-call ZtdQuery\Platform\Sqlite\Schema\Key\ForeignKeyEntryParser::identifierList() packages/ztd-query-sqlite/src/Schema/Key/ForeignKeyEntryParser.php:133
- static-call ZtdQuery\Platform\Sqlite\Schema\Key\ForeignKeyTokens::tableBody() packages/ztd-query-sqlite/src/Schema/Key/ForeignKeyTokens.php:43
- static-call ZtdQuery\Platform\Sqlite\Schema\Key\ForeignKeyTokens::tableBody() packages/ztd-query-sqlite/src/Schema/Key/ForeignKeyTokens.php:48
- static-call ZtdQuery\Platform\Sqlite\Schema\Key\ForeignKeyTokens::symbolIndex() packages/ztd-query-sqlite/src/Schema/Key/ForeignKeyTokens.php:76
Calls 1
- class-const SqlTokenKind::Symbol() line 93
Test cases 14§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 4
Other tests reaching this symbol 10
SqliteRewriterTestcallsStatementRewriterTestcallsTableDefinitionBuilderTestcallsForeignKeyEntryParserTestcallsSqliteForeignKeyDefinitionParserTestcallsSqliteSchemaParserTestcallsAddColumnResolverTestcallsTableMutationResolverTestcallsSqliteMutationResolverTestcallsSqliteSessionFactoryTestcalls
Relations§
Instantiated in 1
Static calls 5
- static-call ZtdQuery\Platform\Sqlite\Schema\Key\ForeignKeyEntryParser::parseEntry() packages/ztd-query-sqlite/src/Schema/Key/ForeignKeyEntryParser.php:28
- static-call ZtdQuery\Platform\Sqlite\Schema\Key\ForeignKeyEntryParser::foreignKeyColumns() packages/ztd-query-sqlite/src/Schema/Key/ForeignKeyEntryParser.php:74
- static-call ZtdQuery\Platform\Sqlite\Schema\Key\ForeignKeyEntryParser::referencedRelation() packages/ztd-query-sqlite/src/Schema/Key/ForeignKeyEntryParser.php:104
- static-call ZtdQuery\Platform\Sqlite\Schema\Key\ForeignKeyEntryParser::referencedRelation() packages/ztd-query-sqlite/src/Schema/Key/ForeignKeyEntryParser.php:113
- static-call ZtdQuery\Platform\Sqlite\Schema\Key\ForeignKeyEntryParser::identifierList() packages/ztd-query-sqlite/src/Schema/Key/ForeignKeyEntryParser.php:133