6 lines
137 B
JavaScript
6 lines
137 B
JavaScript
|
const DB=require('better-sqlite3');
|
||
|
const fs=require('fs');
|
||
|
|
||
|
const db=new DB('db.sqlite');
|
||
|
db.exec(fs.readFileSync('init.sql', 'utf8'));
|