classTableAction
final class TableAction
implements AlterCommand
uses Snapshot
Public API: explicitly declared with
@visibility public.A relation action without an operand.
One AlterTableCmd without operands; see TableActionKind. Source: https://www.postgresql.org/docs/17/sql-altertable.html.
$statement = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER TABLE t ENABLE ROW LEVEL SECURITY');
$statement->statement->commands[0]->kind // => \SqlSemantics\Platform\PostgreSql\Statement\Table\Alter\TableActionKind::EnableRowSecurityProperties§
public TableActionKind $kindMethods§
public function __construct(public TableActionKind $kind)Parameters
$kind | TableActionKind | The action |
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives nothing: the action has no operand.
Parameters
$derivation | Derivation | |
$environment | Environment |
public function render(Output $out): voidWrites the keywords.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 46
- method-call TableActionKind::keywords() line 46
Test cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
TableActionTestcalls