classTextArgument
final class TextArgument
implements AttributeArgument
uses Snapshot
@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.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze("CREATE COLLATION german (locale = 'de_DE')");
$operation->statement->definition[0]->value->text->value // => 'de_DE'Properties§
public TypeName|KeywordWord|OperatorName|SignedNumber|StringConstant $textMethods§
public function __construct(public TypeName|KeywordWord|OperatorName|SignedNumber|StringConstant $text)Parameters
$text | TypeName|KeywordWord|OperatorName|SignedNumber|StringConstant | The value as written |
public function fits(Reading $reading): boolTells whether the reading reads text.
Parameters
$reading | Reading |
Returns
boolTest cases 2
Calls 1
- class-const Reading::Text() line 48
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives the modifier expressions of a value written as a type name.
Parameters
$derivation | Derivation | |
$environment | Environment |
Test cases 1
public function render(Output $out): voidWrites the value as written.
Parameters
$out | Output |
Test cases 1
Calls 1
- method-call Output::node() line 64
Test cases 7§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.