Unmarshal parses data and stores the result to current oceanBaseQueryPlan.
(data any)
| 142 | |
| 143 | // Unmarshal parses data and stores the result to current oceanBaseQueryPlan. |
| 144 | func (plan *oceanBaseQueryPlan) Unmarshal(data any) error { |
| 145 | b, err := json.Marshal(data) |
| 146 | if err != nil { |
| 147 | return err |
| 148 | } |
| 149 | if b != nil { |
| 150 | return json.Unmarshal(b, &plan) |
| 151 | } |
| 152 | return nil |
| 153 | } |
no outgoing calls