classMaintenanceRule
final class MaintenanceRule
Lowers the administration commands VACUUM, PRAGMA, REINDEX and ANALYZE.
Rule: SQLITE-MAINTENANCE-LOWER-001. Scope: the cmd productions of VACUUM, PRAGMA, REINDEX and ANALYZE, with vinto and nmnum. Constructors: Vacuum, Pragma, Reindex, Analyze. The two value notations of a pragma lower to the same request; = and the parentheses are declared noise. No fact is derived here. Terminates: fixed number of children. Source: https://sqlite.org/lang_vacuum.html, https://sqlite.org/pragma.html, https://sqlite.org/lang_reindex.html, https://sqlite.org/lang_analyze.html. Status: Implemented.
Methods§
public function __construct(private Lowering $lowering)Parameters
$lowering | Lowering | The lowering this rule belongs to |
Lowers an administration command, or answers null for a command of another family.
Parameters
$form | Form |
Returns
Called from 1
Calls 7
- new Vacuum line 50
- method-call MaintenanceRule::into() line 50
- method-call Form::node() line 50
- new Pragma line 52
- method-call MaintenanceRule::value() line 53
- new Reindex line 55
- new Analyze line 57
Lowers the optional target file expression of VACUUM.
Parameters
$into | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalled from 2
- method-call SqlSemantics\Platform\Sqlite\Lowering\Definition\MaintenanceRule::command() packages/sql-semantics-sqlite/src/Lowering/Definition/MaintenanceRule.php:50
- method-call SqlSemantics\Platform\Sqlite\Lowering\Definition\MaintenanceRule::command() packages/sql-semantics-sqlite/src/Lowering/Definition/MaintenanceRule.php:51
Calls 1
- static-call ImplementationGap::production() line 75
public function value(Node $value): SignedNumber|Name|PragmaKeywordLowers a pragma value that is not a negative number.
Parameters
$value | Node |
Returns
Throws
ImplementationGap When the production has no ruleCalled from 1
Calls 4
- class-const PragmaKeyword::On() line 91
- class-const PragmaKeyword::Delete() line 92
- class-const PragmaKeyword::Default() line 93
- static-call ImplementationGap::production() line 94
Private surface 1§
Implementation details, listed for orientation only.
private 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
MaintenanceRuleTestcalls