MCPcopy Create free account
hub / github.com/dolthub/doltgresql / GetStaticallyKnownType

Function GetStaticallyKnownType

postgres/parser/sem/tree/type_name.go:188–191  ·  view source on GitHub ↗

GetStaticallyKnownType possibly promotes a ResolvableTypeReference into a *types.T if the reference is a statically known type. It is only safe to access the returned type if ok is true.

(ref ResolvableTypeReference)

Source from the content-addressed store, hash-verified

186// *types.T if the reference is a statically known type. It is only safe to
187// access the returned type if ok is true.
188func GetStaticallyKnownType(ref ResolvableTypeReference) (typ *types.T, ok bool) {
189 typ, ok = ref.(*types.T)
190 return typ, ok
191}
192
193// MustBeStaticallyKnownType does the same thing as GetStaticallyKnownType but panics
194// in the case that the reference is not statically known. This function

Callers 8

arrayOfFunction · 0.92
ComputeColNameInternalFunction · 0.85
SQLStringMethod · 0.85
IsReferenceSerialTypeFunction · 0.85
docMethod · 0.85
docMethod · 0.85
processCollationOnTypeFunction · 0.85
FormatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected