final class ArgumentText
Restricted visibility: declared "@visibility SqlSemantics\Platform\PostgreSql". Code outside that scope must not name this declaration.

Reads a definition value the way the defGet* functions of PostgreSQL do.

Rule: PG-DEFINE-VALUE-001. The grammar gives a definition value as a type name (func_type), a reserved keyword or NONE (a string node holding the lower-case word), an operator (a name list), a number (an integer node when it fits in 32 bits, otherwise a float node) or a string. The names of a type name are its written parts, or pg_catalog and the internal name for a type keyword, as SystemTypeName builds them; its text is those names joined by dots with %TYPE and [] appended as TypeNameToString does; modifiers and SETOF are not part of either. The text of an integer node is its value, the text of a float node is the written text of the constant with the sign of NumericOnly. Terminates: no recursion. Source: defGetString, defGetQualifiedName and defGetInt32 in src/backend/commands/define.c, appendTypeNameToBuffer in src/backend/parser/parse_type.c and def_arg in src/backend/parser/gram.y of PostgreSQL 17. Status: Implemented.

Methods§

Answers the text the server reads from a value.

Returns

string
Test cases 1
Called from 8
Calls 3
public function number(SignedNumber $number): string

Answers the text of a number: the integer value, or the written text of a float.

Parameters

Returns

string
Test cases 1
Called from 1
Calls 1

Test cases 5§

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

Dedicated tests 5

Relations§

Instantiated in 12
Method calls 16