MCPcopy Create free account
hub / github.com/bytebase/bytebase / Unmarshal

Method Unmarshal

backend/plugin/db/mysql/stats.go:144–153  ·  view source on GitHub ↗

Unmarshal parses data and stores the result to current oceanBaseQueryPlan.

(data any)

Source from the content-addressed store, hash-verified

142
143// Unmarshal parses data and stores the result to current oceanBaseQueryPlan.
144func (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}

Callers 15

UserInfoMethod · 0.80
UserInfoMethod · 0.80
GetOpenIDConfigurationFunction · 0.80
TestCompletionFunction · 0.80
TestGetQuerySpanFromYAMLFunction · 0.80
TestGetQuerySpanFunction · 0.80
TestRestoreFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestCompletionFunction · 0.64
TestGetQuerySpanFromYAMLFunction · 0.64
TestGetQuerySpanFunction · 0.64
TestRestoreFunction · 0.64
runMySQLOmniGoldenCaseFunction · 0.64
TestGetStatementTypeFunction · 0.64
TestBackupFunction · 0.64
TestCompletionFunction · 0.64
TestGetQuerySpanFunction · 0.64