classTransforms
final class Transforms
implements RoutineOption
uses Snapshot
Public API: explicitly declared with
@visibility public.TRANSFORM FOR TYPE type, ...: the types whose transforms the routine applies.
Source: https://www.postgresql.org/docs/17/sql-createfunction.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')])));
count((new \SqlSemantics\Platform\PostgreSql\Statement\Routine\Option\Transforms([$type]))->types) // => 1Properties§
public non-empty-list<TypeName> $typesMethods§
public function __construct(list<TypeName> $types)Parameters
$types | list<TypeName> | The types in written order; at least one |
Calls 2
- static-call Check::listOf() line 38
- class-const TypeName::class() line 38
public function alterable(): boolTells that ALTER does not accept the option.
Returns
boolTest cases 1
public function setting(): stringpublic function deriveClause(Derivation $derivation, Environment $environment): voidpublic function render(Output $out): voidWrites TRANSFORM and each type after FOR TYPE.
Parameters
$out | Output |
Test cases 1
Calls 2
- method-call Output::keyword() line 72
- method-call Output::symbol() line 75
Test cases 5§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.