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

Function ParseDUuidFromString

postgres/parser/sem/tree/datum.go:229–235  ·  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

227// ParseDUuidFromString parses and returns the *DUuid Datum value represented
228// by the provided input string, or an error.
229func ParseDUuidFromString(s string) (*DUuid, error) {
230 uv, err := uuid.FromString(s)
231 if err != nil {
232 return nil, makeParseError(s, types.Uuid, err)
233 }
234 return NewDUuid(DUuid{uv}), nil
235}
236
237// ParseDUuidFromBytes parses and returns the *DUuid Datum value represented
238// 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