an experiment in putting together a wiki and an object-oriented mud.
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.
the-forest/server/db_scripts/dump_24-10-10.js

11 lines
361 B

const sqlite = require("better-sqlite3");
const db = new sqlite('the_big_db.db', { verbose: console.log });
const fs = require('node:fs');
const dump = {
pages: db.prepare('select * from pages').all(),
users: db.prepare('select * from users').all()
};
fs.writeFile(`dump_${new Date().toISOString()}.json`, JSON.stringify(dump), (err) => console.log(err) );