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

Function IsReferenceSerialType

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

IsReferenceSerialType returns whether the input reference is a known serial type. It should only be used during parsing.

(ref ResolvableTypeReference)

Source from the content-addressed store, hash-verified

236// IsReferenceSerialType returns whether the input reference is a known
237// serial type. It should only be used during parsing.
238func IsReferenceSerialType(ref ResolvableTypeReference) bool {
239 if typ, ok := GetStaticallyKnownType(ref); ok {
240 return types.IsSerialType(typ)
241 }
242 return false
243}
244
245// TypeCollectorVisitor is an expression visitor that collects all explicit
246// OID type references in an expression.

Callers 1

NewColumnTableDefFunction · 0.85

Calls 2

IsSerialTypeFunction · 0.92
GetStaticallyKnownTypeFunction · 0.85

Tested by

no test coverage detected