final class TriggerArgument
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

One argument passed to a trigger function.

The server passes every argument as a string: an integer constant as its decimal value, a numeric constant as its written text, a string constant as its value and a word as its name (TriggerFuncArg in gram.y). Source: https://www.postgresql.org/docs/17/sql-createtrigger.html.

Reading trigger argumentsdoctest
$statement = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze("CREATE TRIGGER g BEFORE INSERT ON t FOR EACH ROW EXECUTE FUNCTION f(1, 2.5, 'x', word)");
    $statement->toString() // => "CREATE TRIGGER g BEFORE INSERT ON t FOR EACH ROW EXECUTE FUNCTION f(1, 2.5, 'x', word)"

Properties§

Methods§

public function __construct(public IntegerConstant|NumericConstant|StringConstant|Name $value)
public function render(Output $out): void

Writes the argument.

Parameters

$outOutput
Calls 3

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 1
Constant reads 2