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

Function NewTypedTuple

pkg/sql/sem/tree/expr.go:834–840  ·  view source on GitHub ↗

NewTypedTuple returns a new Tuple that is verified to be well-typed.

(typ *types.T, typedExprs Exprs)

Source from the content-addressed store, hash-verified

832
833// NewTypedTuple returns a new Tuple that is verified to be well-typed.
834func NewTypedTuple(typ *types.T, typedExprs Exprs) *Tuple {
835 return &Tuple{
836 Exprs: typedExprs,
837 Labels: typ.TupleLabels(),
838 typ: typ,
839 }
840}
841
842// Format implements the NodeFormatter interface.
843func (node *Tuple) Format(ctx *FmtCtx) {

Callers

nothing calls this directly

Calls 1

TupleLabelsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…