MCPcopy Create free account
hub / github.com/go-dev-frame/sponge / UnMarshalTableInfo

Function UnMarshalTableInfo

pkg/sql2code/parser/tableInfo.go:133–140  ·  view source on GitHub ↗

UnMarshalTableInfo unmarshal the json data to TableInfo struct

(data string)

Source from the content-addressed store, hash-verified

131
132// UnMarshalTableInfo unmarshal the json data to TableInfo struct
133func UnMarshalTableInfo(data string) (map[string]interface{}, error) {
134 info := map[string]interface{}{}
135 err := json.Unmarshal([]byte(data), &info)
136 if err != nil {
137 return info, err
138 }
139 return info, nil
140}

Callers 2

SQLCommandFunction · 0.92

Calls 1

UnmarshalMethod · 0.65

Tested by 1