MCPcopy Create free account
hub / github.com/elestio/cloudgate / ExecuteQuery

Function ExecuteQuery

modules/tools.js:996–1008  ·  view source on GitHub ↗
(cpool, query)

Source from the content-addressed store, hash-verified

994
995
996function ExecuteQuery(cpool, query) {
997 return new Promise(function(resolve, reject) {
998
999 cpool.query(query, function(error, results, fields) {
1000 if (error) {
1001 resolve(error);
1002 }
1003 else{
1004 resolve(results);
1005 }
1006 });
1007 });
1008}

Callers 1

ProcessCommandLineFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected