Snek/install.js

6 lines
137 B
JavaScript
Raw Normal View History

2020-04-13 19:58:53 +00:00
const DB=require('better-sqlite3');
const fs=require('fs');
const db=new DB('db.sqlite');
db.exec(fs.readFileSync('init.sql', 'utf8'));