final class DefinitionReader
Restricted visibility: declared "@visibility ZtdQuery\Platform\MySql". Code outside that scope must not name this declaration.

Definition Reader.

Methods§

public function tableBody(string $sql, SqlLexerProfile $lexerProfile): ?string

Table Body for the supplied MySQL input.

Parameters

$sqlstring
$lexerProfileSqlLexerProfile

Returns

?string
Test cases 1
Called from 1
Calls 3
public function parseEntry(
    SqlTokenStream $stream,
    string $defaultName,
    ?string $inlineColumn,
): array{name: string, foreignKey: ForeignKeyDefinition}|null
public function foreignKeyColumns(
    SqlTokenStream $stream,
    list<SqlToken> $tokens,
    int $references,
): list<string>
public function referencedRelation(
    SqlTokenStream $stream,
    list<SqlToken> $tokens,
    int $start,
): array{table: string, columns: list<string>}|null
public static function symbolIndex(list<SqlToken> $tokens, string $symbol, int $start): ?int

Test cases 21§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 12
Other tests reaching this symbol 9

Relations§

Instantiated in 2
Method calls 2