MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / IsWildcardTupleType

Function IsWildcardTupleType

pkg/sql/types/types.go:3003–3005  ·  view source on GitHub ↗

IsWildcardTupleType returns true if this is the wildcard AnyTuple type. The wildcard type matches a tuple type having any number of fields (including 0).

(t *T)

Source from the content-addressed store, hash-verified

3001// IsWildcardTupleType returns true if this is the wildcard AnyTuple type. The
3002// wildcard type matches a tuple type having any number of fields (including 0).
3003func IsWildcardTupleType(t *T) bool {
3004 return len(t.TupleContents()) == 1 && t.TupleContents()[0].Family() == AnyFamily
3005}
3006
3007// collatedStringTypeSQL returns the string representation of a COLLATEDSTRING
3008// or []COLLATEDSTRING type. This is tricky in the case of an array of collated

Callers 4

DatumTypeSizeFunction · 0.92
EquivalentMethod · 0.85
EquivalentOrNullMethod · 0.85
StringMethod · 0.85

Calls 2

TupleContentsMethod · 0.80
FamilyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…