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

Function MakeTuple

pkg/sql/types/types.go:830–834  ·  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

828// Warning: the contents slice is used directly; the caller should not modify it
829// after calling this function.
830func MakeTuple(contents []T) *T {
831 return &T{InternalType: InternalType{
832 Family: TupleFamily, Oid: oid.T_record, TupleContents: contents, Locale: &emptyLocale,
833 }}
834}
835
836// MakeLabeledTuple constructs a new instance of a TupleFamily type with the
837// given field types and labels.

Callers 5

maybePopulateTypeMethod · 0.92
typeCheckComparisonOpFunction · 0.92
typeCheckTupleComparisonFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…