1 var db
= require("../utils/database");
12 getByName: function(name
, callback
)
14 db
.serialize(function() {
18 "WHERE name='" + name
+ "'";
19 db
.get(query
, callback
);
23 getAll: function(callback
)
25 db
.serialize(function() {
29 db
.all(query
, callback
);
33 //create, update, delete: directly in DB
36 module
.exports
= VariantModel
;