Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. var orm = require("../config/orm.js");
  2.  
  3. var burger = {
  4. all: function(cb){
  5. orm.all("burgers", function(res){
  6. cb(res);
  7. });
  8. },
  9. create: function(col, val, cb){
  10. orm.create("burgers", col, val, function(res){
  11. cb(res);
  12. });
  13. },
  14. update: function(objColVals, condition, cb){
  15. orm.update("burgers", objColVals, condition, function(res){
  16. cb(res);
  17. });
  18. }
  19. };
  20. module.exports = burger;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement