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

Function ParseDUuidFromString

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

ParseDUuidFromString parses and returns the *DUuid Datum value represented by the provided input string, or an error.

(s string)

Source from the content-addressed store, hash-verified

378// ParseDUuidFromString parses and returns the *DUuid Datum value represented
379// by the provided input string, or an error.
380func ParseDUuidFromString(s string) (*DUuid, error) {
381 uv, err := uuid.FromString(s)
382 if err != nil {
383 return nil, MakeParseError(s, types.Uuid, err)
384 }
385 return NewDUuid(DUuid{uv}), nil
386}
387
388// ParseDUuidFromBytes parses and returns the *DUuid Datum value represented
389// by the provided input bytes, or an error.

Callers 2

ParseAndRequireStringFunction · 0.85
SampleDatumFunction · 0.85

Calls 3

FromStringFunction · 0.92
MakeParseErrorFunction · 0.85
NewDUuidFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…