Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const orm = require("../config/orm.js");
- var burger = {
- selectAll: function (cb) {
- orm.selectAll("burgers", function (res) {
- cb(res);
- });
- },
- insertOne: function (columnInput, valueInput, cb) {
- orm.insertOne("burgers", columnInput, valueInput, function (res) {
- cb(res);
- });
- },
- updateOne: function (columnInput, valueInput, conditionCol, conditionVal, cb) {
- orm.insertOne("burgers", columnInput, valueInput, conditionCol, conditionVal, function (res) {
- cb(res);
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement