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

Function NewDString

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

NewDString is a helper routine to create a *DString initialized from its argument.

(d string)

Source from the content-addressed store, hash-verified

1197// NewDString is a helper routine to create a *DString initialized from its
1198// argument.
1199func NewDString(d string) *DString {
1200 r := DString(d)
1201 return &r
1202}
1203
1204// AsDString attempts to retrieve a DString from an Expr, returning a DString and
1205// a flag signifying whether the assertion was successful. The function should

Callers 8

NextMethod · 0.85
datum.goFile · 0.85
NewDNameFunction · 0.85
NewDRefCursorFunction · 0.85
AdjustValueToTypeFunction · 0.85
DatumPrevFunction · 0.85
ParseAndRequireStringFunction · 0.85
SampleDatumFunction · 0.85

Calls 1

DStringTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…