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

Function createTable

database.js:130–145  ·  view source on GitHub ↗
(param, callback)

Source from the content-addressed store, hash-verified

128];
129
130var createTable = function (param, callback) {
131 try {
132 dynamodb.createTable(param, function (err, data) {
133 if (!err) {
134 if (typeof(callback) === 'function') {
135 callback(data);
136 }
137 } else {
138 throw (err);
139 }
140 });
141 }
142 catch (err) {
143 console.log('error in updating the item' + err);
144 }
145};
146
147var putItem = function (param, callback) {
148 try {

Callers 1

database.jsFile · 0.85

Calls 1

callbackFunction · 0.85

Tested by

no test coverage detected