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.
17 lines
401 B
17 lines
401 B
var sqlite3 = require('sqlite3').verbose(); |
|
|
|
const db = new sqlite3.Database('data/db.sqlite3', (err) => { |
|
if (err) { |
|
console.error(err.message); |
|
throw err; |
|
} else { |
|
console.log('Connected to the SQLite database.'); |
|
db.run( |
|
`CREATE TABLE IF NOT EXISTS netmonResults (id integer PRIMARY KEY, |
|
timestamp text, |
|
status integer)` |
|
); |
|
} |
|
}); |
|
|
|
module.exports = db;
|
|
|