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.

Reading a relation actiondoctest
$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::EnableRowSecurity

Properties§

Methods§

public function __construct(public TableActionKind $kind)

Parameters

$kindTableActionKindThe action
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives nothing: the action has no operand.

Parameters

$derivationDerivation
$environmentEnvironment
public function render(Output $out): void

Writes the keywords.

Parameters

$outOutput
Calls 2

Test cases 4§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 3

Relations§

Instantiated in 1
Type checks 1