Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var orm = require("../config/orm.js");
- var burger = {
- all: function(cb){
- orm.all("burgers", function(res){
- cb(res);
- });
- },
- create: function(col, val, cb){
- orm.create("burgers", col, val, function(res){
- cb(res);
- });
- },
- update: function(objColVals, condition, cb){
- orm.update("burgers", objColVals, condition, function(res){
- cb(res);
- });
- }
- };
- module.exports = burger;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement