classTransformFunction
final class TransformFunction
implements Clause
uses Snapshot
Public API: explicitly declared with
@visibility public.FROM SQL WITH FUNCTION function or TO SQL WITH FUNCTION function of a transform.
Source: https://www.postgresql.org/docs/17/sql-createtransform.html.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE TRANSFORM FOR hstore LANGUAGE plpython3u (TO SQL WITH FUNCTION f(internal))');
$operation->statement->functions[0]->direction // => \SqlSemantics\Platform\PostgreSql\Statement\Catalog\Cast\TransformDirection::ToSqlProperties§
public TransformDirection $directionpublic ObjectReference $functionMethods§
public function __construct(
public TransformDirection $direction,
public ObjectReference $function,
)Parameters
$direction | TransformDirection | The direction |
$function | ObjectReference | The function signature |
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives the function signature.
Parameters
$derivation | Derivation | |
$environment | Environment |
Calls 1
- method-call ObjectReference::deriveClause() line 41
public function render(Output $out): voidWrites the clause.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 49
- function-call
explodeline 49
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
TransformFunctionTestcalls