MCPcopy
hub / github.com/google/uuid / Value

Method Value

sql.go:57–59  ·  sql.go::UUID.Value

Value implements sql.Valuer so that UUIDs can be written to databases transparently. Currently, UUIDs map to strings. Please consult database-specific driver documentation for matching types.

()

Source from the content-addressed store, hash-verified

55// transparently. Currently, UUIDs map to strings. Please consult
56// database-specific driver documentation for matching types.
57func (uuid UUID) Value() (driver.Value, error) {
58 return uuid.String(), nil
59}

Callers 2

TestNullUUIDValueFunction · 0.95
TestValueFunction · 0.45

Calls 1

StringMethod · 0.95

Tested by 2

TestNullUUIDValueFunction · 0.76
TestValueFunction · 0.36