the-forest/server/db_scripts/list_tables.js

4 lines
194 B
JavaScript

const sqlite = require("better-sqlite3");
const db = new sqlite('./the_big_db.db', { verbose: console.log });
console.log(db.prepare("select name from sqlite_master where type='table'").all());