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

Function ParseDUuidFromBytes

pkg/sql/sem/tree/datum.go:341–347  ·  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

339// ParseDUuidFromBytes parses and returns the *DUuid Datum value represented
340// by the provided input bytes, or an error.
341func ParseDUuidFromBytes(b []byte) (*DUuid, error) {
342 uv, err := uuid.FromBytes(b)
343 if err != nil {
344 return nil, makeParseError(string(b), types.Uuid, err)
345 }
346 return NewDUuid(DUuid{uv}), nil
347}
348
349// ParseDIPAddrFromINetString parses and returns the *DIPAddr Datum value
350// represented by the provided input INet string, or an error.

Callers 2

PerformCastFunction · 0.85
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…