final class TransformFor
    implements ObjectReference
    uses Snapshot
Public API: explicitly declared with @visibility public.

A transform named by its type and language: FOR type LANGUAGE language.

Source: https://www.postgresql.org/docs/17/sql-droptransform.html.

Reading the languagedoctest
$type = new \SqlSemantics\Platform\PostgreSql\Statement\Type\TypeName(new \SqlSemantics\Platform\PostgreSql\Statement\Type\Designation\NamedDesignation(new \SqlSemantics\Platform\PostgreSql\Statement\Name\DottedName([new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('hstore')])));
    (new \SqlSemantics\Platform\PostgreSql\Statement\Object\Reference\TransformFor($type, new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('plpython3u')))->language->value // => 'plpython3u'

Properties§

public TypeName $type
public Name $language

Methods§

public function __construct(public TypeName $type, public Name $language)

Parameters

$typeTypeNameThe transformed type
$languageNameThe language
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives the type modifiers.

Parameters

$derivationDerivation
$environmentEnvironment
Test cases 1
Calls 1
public function render(Output $out): void

Writes FOR, the type, LANGUAGE and the language.

Parameters

$outOutput
Test cases 1
Calls 2

Test cases 3§

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

Dedicated tests 2
Other tests reaching this symbol 1

Relations§

Instantiated in 3
Type checks 1