
exports.get = function getMany(model, params) {
}

exports.add = function add(model, data) {
}

exports.update = function update(model, id, data) {
}

exports.delete = function delete(model, id, params) {
}
@@ -1,19 +1,5 @@
 %0A
-exports.get = 
 func
@@ -10,12 +10,8 @@
  get
-Many
 (mod
@@ -24,29 +24,19 @@
 rams
+, cb
 ) %7B%0A%7D%0A%0A
-exports.add = 
 func
@@ -59,32 +59,61 @@
 data
+, cb
 ) %7B%0A%7D%0A%0A
-exports.update = 
+function update(model, id, data, cb) %7B%0A%7D%0A%0A
 func
@@ -109,38 +109,35 @@
 ) %7B%0A%7D%0A%0Afunction 
-update
+del
 (model, id, data
@@ -136,70 +136,220 @@
 id, 
-data) %7B%0A%7D%0A%0Aexports.delete = function delete(model, id, params) %7B%0A%7D
+params, cb) %7B%0A%7D%0A%0Afunction getNameFromModel(model) %7B%0A  return new model().tableName;%0A%7D%0A%0Aexports.get = get;%0Aexports.add = add;%0Aexports.update = update;%0Aexports.delete = del;%0Aexports.getNameFromModel = getNameFromModel;

Add function to get table name from model