(m *Map, oid uint32, format int16, src []byte)
| 264 | } |
| 265 | |
| 266 | func (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 | |
| 280 | func (c UUIDCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) { |
| 281 | if src == nil { |
nothing calls this directly
no test coverage detected