MCPcopy Create free account
hub / github.com/ethereum/node-crawler / toQuery

Function toQuery

pkg/api/api.go:151–162  ·  view source on GitHub ↗
(query string, whereArgs []interface{})

Source from the content-addressed store, hash-verified

149}
150
151func toQuery(query string, whereArgs []interface{}) string {
152 var res string
153 queryParts := strings.Split(query, "?")
154 for idx, s := range queryParts {
155 res += s
156 if idx == len(whereArgs) {
157 break
158 }
159 res += whereArgs[idx].(string)
160 }
161 return res
162}
163
164func (a *Api) storeCache(
165 clientQuery,

Callers 2

cachedOrQueryMethod · 0.85
storeCacheMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected