out-of-your-element/scripts/wal.js

7 lines
174 B
JavaScript
Executable file

#!/usr/bin/env node
// @ts-check
const sqlite = require("better-sqlite3")
const db = new sqlite("ooye.db", {fileMustExist: true})
db.pragma("journal_mode = wal")
db.close()