classMaintenanceTarget
final class MaintenanceTarget
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.A table VACUUM or ANALYZE processes, with the columns to analyze when some are listed.
Mirrors PostgreSQL's VacuumRelation (relation, va_cols). No column stands for every column. Source: https://www.postgresql.org/docs/17/sql-vacuum.html, https://www.postgresql.org/docs/17/sql-analyze.html.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ANALYZE app.t (a, b)');
[$operation->statement->targets[0]->table->schema->value, count($operation->statement->targets[0]->columns)] // => ['app', 2]Properties§
public list<Name> $columnspublic QualifiedName $tableMethods§
public function __construct(public QualifiedName $table, list<Name> $columns = [])Parameters
$table | QualifiedName | The table name |
$columns | list<Name> | The columns to analyze; none stands for every column |
Calls 2
- static-call Check::listOf() line 43
- class-const Name::class() line 43
public function render(Output $out): voidWrites the table and the parenthesized columns.
Parameters
$out | Output |
Calls 5
- method-call Spelling::qualified() line 51
- new Spelling line 51
- method-call Output::symbol() line 55
- method-call Output::name() line 60
- class-const NameUse::Column() line 60
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
MaintenanceTargetTestcalls
Relations§
Instantiated in 1
Constant reads 2
- class-const SqlSemantics\Platform\PostgreSql\Statement\Utility\Maintenance\Analyze::__construct() packages/sql-semantics-postgres/src/Statement/Utility/Maintenance/Analyze.php:58
- class-const SqlSemantics\Platform\PostgreSql\Statement\Utility\Maintenance\Vacuum::__construct() packages/sql-semantics-postgres/src/Statement/Utility/Maintenance/Vacuum.php:61