classMaintenanceRule
final class MaintenanceRule
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.
Lowers TRUNCATE, extended statistics and CREATE ASSERTION.
Rule: PG-TABLE-MAINTENANCE-LOWER-001. Scope: TruncateStmt, opt_restart_seqs, CreateStatsStmt, stats_params, stats_param, AlterStatsStmt, CreateAssertionStmt. The optional TABLE of TRUNCATE is noise (LeafNoise opt_table). Termination: lists are flattened iteratively. Source: https://www.postgresql.org/docs/17/sql-truncate.html, https://www.postgresql.org/docs/17/sql-createstatistics.html. Status: Implemented.
Methods§
public function truncate(Node $statement): TruncateTableLowers TruncateStmt.
Parameters
$statement | Node |
Returns
Throws
ImplementationGap When the production has no ruleTest cases 1
Called from 1
Calls 2
- static-call ImplementationGap::production() line 47
- new TruncateTable line 51
public function statistics(Node $statement): CreateStatisticsLowers CreateStatsStmt.
Parameters
$statement | Node |
Returns
Throws
ImplementationGap When the production has no ruleTest cases 1
Called from 1
Calls 5
- static-call ImplementationGap::production() line 74
- method-call Lowering::items() line 77
- new ColumnKey line 80
- new ExpressionKey line 81
- new CreateStatistics line 87
public function alterStatistics(Node $statement): AlterStatisticsLowers AlterStatsStmt.
Parameters
$statement | Node |
Returns
Throws
ImplementationGap When the production has no ruleTest cases 1
Called from 1
Calls 4
- static-call ImplementationGap::production() line 101
- new AlterStatistics line 104
- method-call AlterCommandRule::statistics() line 104
- new AlterCommandRule line 104
public function assertion(Node $statement): CreateAssertionLowers CreateAssertionStmt.
Parameters
$statement | Node |
Returns
Throws
ImplementationGap When the production has no ruleTest cases 1
Called from 1
Calls 2
- static-call ImplementationGap::production() line 116
- new CreateAssertion line 119
Private surface 1§
Implementation details, listed for orientation only.
private Lowering $loweringTest cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Relations§
Instantiated in 4
- new SqlSemantics\Platform\PostgreSql\Lowering\Table\Tables::other() packages/sql-semantics-postgres/src/Lowering/Table/Tables.php:72
- new SqlSemantics\Platform\PostgreSql\Lowering\Table\Tables::other() packages/sql-semantics-postgres/src/Lowering/Table/Tables.php:73
- new SqlSemantics\Platform\PostgreSql\Lowering\Table\Tables::other() packages/sql-semantics-postgres/src/Lowering/Table/Tables.php:74
- new SqlSemantics\Platform\PostgreSql\Lowering\Table\Tables::other() packages/sql-semantics-postgres/src/Lowering/Table/Tables.php:75
Method calls 4
- method-call SqlSemantics\Platform\PostgreSql\Lowering\Table\Tables::other() packages/sql-semantics-postgres/src/Lowering/Table/Tables.php:72
- method-call SqlSemantics\Platform\PostgreSql\Lowering\Table\Tables::other() packages/sql-semantics-postgres/src/Lowering/Table/Tables.php:73
- method-call SqlSemantics\Platform\PostgreSql\Lowering\Table\Tables::other() packages/sql-semantics-postgres/src/Lowering/Table/Tables.php:74
- method-call SqlSemantics\Platform\PostgreSql\Lowering\Table\Tables::other() packages/sql-semantics-postgres/src/Lowering/Table/Tables.php:75