final class DeclaredTyping
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

Answers what an expression knows about a value of a declared type.

Rule: PG-DECLARED-TYPE-001. Scope: every position that reads a declared column. A column declared with a catalog type has that type. A column declared with a type known by name only (NamedOnPath), or an array over one, has a type the context cannot identify: operators, functions and coercions over it depend on the missing inputs the descriptor carries; so does a column a query defines with a type those inputs settle (Undetermined). Minimum precision: Known for every other descriptor. A column defined by a query (CREATE TABLE AS, SELECT INTO, CREATE VIEW) has the type of its output expression; an output of type unknown (an untyped string constant or NULL) is resolved to text (resolveTargetListUnknowns), and an output whose type depends on missing inputs is Undetermined over them. An output of an invalid type has no column type: the server rejects the statement. Source: https://www.postgresql.org/docs/17/ddl-schemas.html#DDL-SCHEMAS-PATH, https://www.postgresql.org/docs/17/typeconv-select.html. Termination: one step per array level. Status: Implemented.

Methods§

public function fact(TypeDescriptor $type): TypeFact

Answers the type fact of a value of a declared type.

Parameters

Returns

Test cases 3
Called from 9
Calls 2

Test cases 6§

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

Dedicated tests 6

Relations§

Instantiated in 11
Method calls 11