var orm = require('orm');
orm.connect('sqlite://storage.sqlite3', function (err, db) {
if (err) throw err;
var Alert = db.define('alert', {
title: String,
url: String,
date: Date,
body: Buffer
}, {
});
db.sync(function (err) {
if (err) throw err;
console.log('Synced');
});
});
I'm using orm@2.0.15 and sqlite3@2.1.7 with node v0.10.12.