(value any, buf []byte)
| 95 | } |
| 96 | |
| 97 | func (plan *encodePlanCompositeCodecCompositeIndexGetterToText) Encode(value any, buf []byte) (newBuf []byte, err error) { |
| 98 | getter := value.(CompositeIndexGetter) |
| 99 | |
| 100 | if getter.IsNull() { |
| 101 | return nil, nil |
| 102 | } |
| 103 | |
| 104 | b := NewCompositeTextBuilder(plan.m, buf) |
| 105 | for i, field := range plan.cc.Fields { |
| 106 | b.AppendValue(field.Type.OID, getter.Index(i)) |
| 107 | } |
| 108 | |
| 109 | return b.Finish() |
| 110 | } |
| 111 | |
| 112 | func (c *CompositeCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan { |
| 113 | switch format { |
nothing calls this directly
no test coverage detected