MCPcopy Create free account
hub / github.com/IceClusters/icmysql / method

Function method

src/db/Query.js:112–117  ·  view source on GitHub ↗
(dbId, query, values, callback, cache)

Source from the content-addressed store, hash-verified

110
111function AddMethod(type) {
112 const method = async function(dbId, query, values, callback, cache) {
113 ScheduleResourceTick(global.resourceName)
114 const data = await ParseArgs(dbId, query, values, callback, cache);
115 if (data == null) return null;
116 ExecuteQuery(type, data.dbId, data.query, data.values, data.callback, data.cache);
117 }
118 const awaitMethod = async function(dbId, query, values, cache) {
119 ScheduleResourceTick(global.resourceName)
120 const data = await ParseArgs(dbId, query, values, null, cache);

Callers

nothing calls this directly

Calls 2

ParseArgsFunction · 0.85
ExecuteQueryFunction · 0.85

Tested by

no test coverage detected