8d7eba25ab350803824b0d830ff1280815b2df02
1 var db
= require("../utils/database");
10 exports
.getByName = function(name
, callback
)
12 db
.serialize(function() {
16 "WHERE name='" + name
+ "'";
17 db
.get(query
, callback
);
21 exports
.getAll = function(callback
)
23 db
.serialize(function() {
27 db
.all(query
, callback
);
31 //create, update, delete: directly in DB