frontend-frameworks-showcase/backend/database.js

4 lines
118 B
JavaScript

let sqlite3 = require('sqlite3').verbose();
module.exports = function(dbUrl) {
return new sqlite3.Database(dbUrl);
};