MCPcopy Index your code
hub / github.com/jackc/pgx / DecodeDatabaseSQLValue

Method DecodeDatabaseSQLValue

pgtype/uuid.go:266–278  ·  view source on GitHub ↗
(m *Map, oid uint32, format int16, src []byte)

Source from the content-addressed store, hash-verified

264}
265
266func (c UUIDCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) {
267 if src == nil {
268 return nil, nil
269 }
270
271 var uuid UUID
272 err := codecScan(c, m, oid, format, src, &uuid)
273 if err != nil {
274 return nil, err
275 }
276
277 return encodeUUID(uuid.Bytes), nil
278}
279
280func (c UUIDCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) {
281 if src == nil {

Callers

nothing calls this directly

Calls 2

codecScanFunction · 0.85
encodeUUIDFunction · 0.85

Tested by

no test coverage detected