classDefinitionTokens
final class DefinitionTokens
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Definition tokens operations for PostgreSQL foreignkey.
Methods§
public function tableBody(string $sql): ?stringTable body.
Parameters
$sql | string |
Returns
?stringTest cases 1
Called from 1
Calls 4
- static-call SqlTokenStream::tokenize() line 24
- static-call PgSqlLexerProfile::create() line 24
- static-call DefinitionTokens::isSymbol() line 43
- function-call
substrline 49
public static function keywordIndex(list<SqlToken> $tokens, string $keyword): ?intpublic 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 DefinitionTokens::isSymbol() line 76
public static function isSymbol(?SqlToken $token, string $symbol): boolIs symbol.
Parameters
$token | ?SqlToken | |
$symbol | string |
Returns
boolTest cases 1
Called from 5
- static-call ZtdQuery\Platform\Postgres\Schema\Key\DefinitionEntry::referencedRelation() packages/ztd-query-postgres/src/Schema/Key/DefinitionEntry.php:104
- static-call ZtdQuery\Platform\Postgres\Schema\Key\DefinitionEntry::identifierList() packages/ztd-query-postgres/src/Schema/Key/DefinitionEntry.php:133
- static-call ZtdQuery\Platform\Postgres\Schema\Key\DefinitionTokens::tableBody() packages/ztd-query-postgres/src/Schema/Key/DefinitionTokens.php:43
- static-call ZtdQuery\Platform\Postgres\Schema\Key\DefinitionTokens::tableBody() packages/ztd-query-postgres/src/Schema/Key/DefinitionTokens.php:48
- static-call ZtdQuery\Platform\Postgres\Schema\Key\DefinitionTokens::symbolIndex() packages/ztd-query-postgres/src/Schema/Key/DefinitionTokens.php:76
Calls 1
- class-const SqlTokenKind::Symbol() line 93
Test cases 15§
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 11
PgSqlSessionFactoryTestcallsTableContextTestcallsPgSqlRewriterTestcallsStatementRewriterTestcallsDefinitionEntryTestcallsPgSqlForeignKeyDefinitionParserTestcallsPgSqlSchemaParserTestcallsSchemaInitializerTestcallsRowMutationResolverTestcallsTableMutationResolverTestcallsPgSqlMutationResolverTestcalls
Relations§
Instantiated in 1
Static calls 5
- static-call ZtdQuery\Platform\Postgres\Schema\Key\DefinitionEntry::parseEntry() packages/ztd-query-postgres/src/Schema/Key/DefinitionEntry.php:28
- static-call ZtdQuery\Platform\Postgres\Schema\Key\DefinitionEntry::foreignKeyColumns() packages/ztd-query-postgres/src/Schema/Key/DefinitionEntry.php:74
- static-call ZtdQuery\Platform\Postgres\Schema\Key\DefinitionEntry::referencedRelation() packages/ztd-query-postgres/src/Schema/Key/DefinitionEntry.php:104
- static-call ZtdQuery\Platform\Postgres\Schema\Key\DefinitionEntry::referencedRelation() packages/ztd-query-postgres/src/Schema/Key/DefinitionEntry.php:113
- static-call ZtdQuery\Platform\Postgres\Schema\Key\DefinitionEntry::identifierList() packages/ztd-query-postgres/src/Schema/Key/DefinitionEntry.php:133