1 var db
= require("../utils/database");
12 // This is duplicated in client. TODO: really required here?
22 "Crazyhouse": [2,3,4],
24 "Extinction": [2,3,4],
35 getByName: function(name
, callback
)
37 db
.serialize(function() {
41 "WHERE name='" + name
+ "'";
42 db
.get(query
, callback
);
46 getAll: function(callback
)
48 db
.serialize(function() {
52 db
.all(query
, callback
);
56 //create, update, delete: directly in DB
59 module
.exports
= VariantModel
;