9a19f18cc7f495b4fca89751c4d1d0045a8f1dab
1 var db
= require("../utils/database");
10 exports
.getByName = function(name
, callback
)
12 db
.serialize(function() {
14 "SELECT * FROM Variants " +
15 "WHERE name='" + name
+ "'",
20 exports
.getAll = function(callback
)
22 db
.serialize(function() {
23 db
.all("SELECT * FROM Variants", callback
);
27 //create, update, delete: directly in DB