classDefinitionCommands
final class DefinitionCommands
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
$lowering | Lowering | The lowering this rule belongs to |
Calls 6
Lowers a command of this family.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When the production has no ruleCalled from 1
Calls 7
- method-call TransactionRule::command() line 62
- method-call MaintenanceRule::command() line 63
- method-call ConnectionRule::command() line 64
- method-call CreateTableRule::command() line 65
- method-call SchemaRule::command() line 66
- method-call VirtualTableRule::command() line 67
- static-call ImplementationGap::production() line 68
Wraps a command in the inspection request written before it.
Returns
Throws
ImplementationGap When the production has no ruleCalled from 1
Calls 4
- new Explain line 81
- class-const ExplainMode::Program() line 81
- class-const ExplainMode::QueryPlan() line 82
- static-call ImplementationGap::production() line 83
Private surface 7§
Implementation details, listed for orientation only.
private TransactionRule $transactionsprivate MaintenanceRule $maintenanceprivate ConnectionRule $connectionsprivate CreateTableRule $tablesprivate SchemaRule $schemaprivate VirtualTableRule $virtualTablesprivate Lowering $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
DefinitionCommandsTestcalls