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

Function MustBeDArray

postgres/parser/sem/tree/datum.go:1644–1650  ·  view source on GitHub ↗

MustBeDArray attempts to retrieve a *DArray from an Expr, panicking if the assertion fails.

(e Expr)

Source from the content-addressed store, hash-verified

1642// MustBeDArray attempts to retrieve a *DArray from an Expr, panicking if the
1643// assertion fails.
1644func MustBeDArray(e Expr) *DArray {
1645 i, ok := AsDArray(e)
1646 if !ok {
1647 panic(errors.AssertionFailedf("expected *DArray, found %T", e))
1648 }
1649 return i
1650}
1651
1652// ResolvedType implements the TypedExpr interface.
1653func (d *DArray) ResolvedType() *types.T {

Callers 1

AppendMethod · 0.85

Calls 1

AsDArrayFunction · 0.85

Tested by

no test coverage detected