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

Function ParseDUuidFromBytes

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

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

(b []byte)

Source from the content-addressed store, hash-verified

388// ParseDUuidFromBytes parses and returns the *DUuid Datum value represented
389// by the provided input bytes, or an error.
390func ParseDUuidFromBytes(b []byte) (*DUuid, error) {
391 uv, err := uuid.FromBytes(b)
392 if err != nil {
393 return nil, MakeParseError(string(b), types.Uuid, err)
394 }
395 return NewDUuid(DUuid{uv}), nil
396}
397
398// ParseDIPAddrFromINetString parses and returns the *DIPAddr Datum value
399// represented by the provided input INet string, or an error.

Callers 1

ResolveAsTypeMethod · 0.85

Calls 3

FromBytesFunction · 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…