final class TextArgument
    implements AttributeArgument
    uses Snapshot
Public API: explicitly declared with @visibility public.

An attribute value read as text, such as the initial condition of an aggregate or the locale of a collation.

defGetString accepts every value: a string as written, a word or a type name as its names joined by dots, a keyword in lower case, an operator, or a number as written. The text is opaque to the command; an initial condition, for example, is later read by the input function of the state type. Source: https://www.postgresql.org/docs/17/sql-createaggregate.html, defGetString in src/backend/commands/define.c of PostgreSQL 17.

Reading the locale of a collationdoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze("CREATE COLLATION german (locale = 'de_DE')");
    $operation->statement->definition[0]->value->text->value // => 'de_DE'

Properties§

Methods§

public function __construct(public TypeName|KeywordWord|OperatorName|SignedNumber|StringConstant $text)

Parameters

public function fits(Reading $reading): bool

Tells whether the reading reads text.

Parameters

$readingReading

Returns

bool
Test cases 2
Calls 1
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives the modifier expressions of a value written as a type name.

Parameters

$derivationDerivation
$environmentEnvironment
Test cases 1
public function render(Output $out): void

Writes the value as written.

Parameters

$outOutput
Test cases 1
Calls 1

Test cases 7§

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 4

Relations§

Instantiated in 1
Type checks 1