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

Lowers the commands that define, change or administer the database.

Rule: SQLITE-DEFINITION-COMMANDS-001. Scope: every cmd production that is not a query command: table, view, index and virtual table definitions, ALTER and DROP, transactions, ATTACH and DETACH, VACUUM, PRAGMA, REINDEX and ANALYZE; and the explain prefix. Each family rule answers null for a command of another family; a command no family claims is an implementation gap. Terminates: a fixed number of family rules is asked once each. Source: https://sqlite.org/lang.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
Calls 6
public function explained(Node $explain, Statement $command): Statement

Wraps a command in the inspection request written before it.

Parameters

$explainNode
$commandStatement

Returns

Throws

ImplementationGap When the production has no rule
Called from 1
Calls 4

Private surface 7§

Implementation details, listed for orientation only.

private TransactionRule $transactions
private MaintenanceRule $maintenance
private ConnectionRule $connections
private CreateTableRule $tables
private SchemaRule $schema
private VirtualTableRule $virtualTables
private Lowering $lowering

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 1
Method calls 2
Type declarations 1