(value any, buf []byte)
| 178 | type encodePlanUUIDCodecTextUUIDValuer struct{} |
| 179 | |
| 180 | func (encodePlanUUIDCodecTextUUIDValuer) Encode(value any, buf []byte) (newBuf []byte, err error) { |
| 181 | uuid, err := value.(UUIDValuer).UUIDValue() |
| 182 | if err != nil { |
| 183 | return nil, err |
| 184 | } |
| 185 | |
| 186 | if !uuid.Valid { |
| 187 | return nil, nil |
| 188 | } |
| 189 | |
| 190 | return append(buf, encodeUUID(uuid.Bytes)...), nil |
| 191 | } |
| 192 | |
| 193 | func (UUIDCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan { |
| 194 | switch format { |
nothing calls this directly
no test coverage detected