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

Parses supported ALTER TABLE operation names and identifiers.

Methods§

public function alterOperation(string $sql): array{kind: 'add'|'drop'|'rename_table'|'rename_column', clause: string}|null
public function alterClause(
    string $sql,
    list<SqlToken> $tokens,
    'add'|'drop'|'rename_table'|'rename_column' $kind,
    int $startIndex,
): array{kind: 'add'|'drop'|'rename_table'|'rename_column', clause: string}|null
public function renamedIdentifiers(string $sql): array{string, string}|null

Test cases 11§

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 7

Relations§

Instantiated in 4
Method calls 4