My LoRaWAN Signal Mapping MSc summer project. This is a copy of the actual repository with personal information removed.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
292 B

"use strict";
import fs from 'fs';
import Database from 'better-sqlite3';
var db = null;
function init({ settings: { database: { filename, options } } }) {
db = new Database(filename, options);
db.exec(fs.readFileSync("../db_template.sql", "utf8"));
return db;
export default init;