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

Function MakeTuple

pkg/sql/types/types.go:1252–1256  ·  view source on GitHub ↗

MakeTuple constructs a new instance of a TupleFamily type with the given field types (some/all of which may be other TupleFamily types). Warning: the contents slice is used directly; the caller should not modify it after calling this function.

(contents []*T)

Source from the content-addressed store, hash-verified

1250// Warning: the contents slice is used directly; the caller should not modify it
1251// after calling this function.
1252func MakeTuple(contents []*T) *T {
1253 return &T{InternalType: InternalType{
1254 Family: TupleFamily, Oid: oid.T_record, TupleContents: contents, Locale: &emptyLocale,
1255 }}
1256}
1257
1258// MakeLabeledTuple constructs a new instance of a TupleFamily type with the
1259// given field types and labels.

Callers 5

maybePopulateTypeMethod · 0.92
typeCheckComparisonOpFunction · 0.92
typeCheckTupleComparisonFunction · 0.92
WithoutTypeModifiersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…