MCPcopy Create free account
hub / github.com/Comcast/Speed-testJS / scanTable

Function scanTable

modules/dynamo.js:141–156  ·  view source on GitHub ↗
(param, callback)

Source from the content-addressed store, hash-verified

139 * @param callback handles the response
140 */
141var scanTable = function (param, callback) {
142 try {
143 dynamo.scan(param, function(err, data) {
144 if (!err) {
145 if (typeof(callback) === 'function') {
146 callback(data);
147 }
148 } else {
149 throw (err);
150 }
151 });
152 }
153 catch (err) {
154 console.log('error in updating the item' + err);
155 }
156};
157
158module.exports = {
159 getItem: getItem,

Callers

nothing calls this directly

Calls 1

callbackFunction · 0.85

Tested by

no test coverage detected