classOwnerTo
final class OwnerTo
implements AlterCommand
uses Snapshot
Public API: explicitly declared with
@visibility public.OWNER TO: changes the owner.
Mirrors AT_ChangeOwner with newowner. Source: https://www.postgresql.org/docs/17/sql-altertable.html.
$statement = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER TABLE t OWNER TO CURRENT_USER');
$statement->toString() // => 'ALTER TABLE t OWNER TO CURRENT_USER'Properties§
public RoleSpec $ownerMethods§
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives nothing: the role is a catalog name.
Parameters
$derivation | Derivation | |
$environment | Environment |
public function render(Output $out): voidTest cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
OwnerToTestcalls