enum ParameterMode: string
Public API: explicitly declared with @visibility public.

The written mode of a routine parameter.

Mirrors PostgreSQL's FunctionParameterMode as written: INOUT and IN OUT are the same mode spelled with one or two keywords, and both are kept so that the statement is written back as it was. A parameter written without a mode is an input parameter. Source: https://www.postgresql.org/docs/17/sql-createfunction.html.

Telling the input modesdoctest
[\SqlSemantics\Platform\PostgreSql\Statement\Routine\ParameterMode::InAndOut->input(), \SqlSemantics\Platform\PostgreSql\Statement\Routine\ParameterMode::Out->input()] // => [true, false]

Cases§

case In = 'IN'
case Out = 'OUT'
case InOut = 'INOUT'
case InAndOut = 'IN OUT'
case Variadic = 'VARIADIC'

Methods§

public function input(): bool

Tells whether the caller passes a value for the parameter.

Returns

bool
Calls 1
public function output(): bool

Tells whether the parameter is part of the result.

Returns

bool
Calls 3
public function keywords(): non-empty-list<string>

Answers the keywords that spell the mode.

Returns

non-empty-list<string>
Calls 1

Test cases 11§

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

Dedicated tests 3
Other tests reaching this symbol 8

Relations§

Constant reads 10
Type declarations 2