MCPcopy
hub / github.com/dosco/graphjin / getMyTypeParser

Function getMyTypeParser

wasm/mysql.go:156–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154}
155
156func getMyTypeParser() js.Func {
157 return js.FuncOf(func(this js.Value, args []js.Value) interface{} {
158 field := args[0]
159 next := args[1]
160 if field.Get("type").String() == "JSON" {
161 return field.Call("string")
162 }
163 return next.Invoke()
164 })
165}
166
167func (s *MyStmt) queryExec(args []driver.Value) (js.Value, error) {
168 m := map[string]interface{}{

Callers 1

queryExecMethod · 0.85

Calls 3

GetMethod · 0.65
CallMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected