classTransformFor
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.
$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 $typepublic Name $languageMethods§
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives the type modifiers.
Parameters
$derivation | Derivation | |
$environment | Environment |
Test cases 1
Calls 1
- method-call TypeName::deriveClause() line 43
public function render(Output $out): voidWrites FOR, the type, LANGUAGE and the language.
Parameters
$out | Output |
Test cases 1
Calls 2
- method-call Output::keyword() line 51
- class-const NameUse::Column() line 51
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
- new SqlSemantics\Platform\PostgreSql\Lowering\Catalog\CastRule::statement() packages/sql-semantics-postgres/src/Lowering/Catalog/CastRule.php:74
- new SqlSemantics\Platform\PostgreSql\Lowering\Catalog\ExtensionRule::contents() packages/sql-semantics-postgres/src/Lowering/Catalog/ExtensionRule.php:138
- new SqlSemantics\Platform\PostgreSql\Lowering\Routine\ObjectRule::keyed() packages/sql-semantics-postgres/src/Lowering/Routine/ObjectRule.php:177