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

Function MustBeDString

pkg/sql/sem/tree/datum.go:1097–1103  ·  view source on GitHub ↗

MustBeDString attempts to retrieve a DString from an Expr, panicking if the assertion fails.

(e Expr)

Source from the content-addressed store, hash-verified

1095// MustBeDString attempts to retrieve a DString from an Expr, panicking if the
1096// assertion fails.
1097func MustBeDString(e Expr) DString {
1098 i, ok := AsDString(e)
1099 if !ok {
1100 panic(errors.AssertionFailedf("expected *DString, found %T", e))
1101 }
1102 return i
1103}
1104
1105// ResolvedType implements the TypedExpr interface.
1106func (*DString) ResolvedType() *types.T {

Callers 3

getJSONPathFunction · 0.85
eval.goFile · 0.85
EvalMethod · 0.85

Calls 1

AsDStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…