mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-05-06 02:07:00 +00:00
Add one-off database inspection and cleanup scripts under `scripts/scratch/` for local debugging and maintenance work. Document root cleanliness and file placement expectations for AI assistants in `GEMINI.md` to keep temporary scripts and tests out of the project root.
7 lines
322 B
JavaScript
7 lines
322 B
JavaScript
const Database = require('better-sqlite3');
|
|
const db = new Database(process.env.HOME + '/.omniroute/storage.sqlite');
|
|
|
|
console.log("Deleting iflow connections...");
|
|
const stmt = db.prepare("DELETE FROM provider_connections WHERE provider = 'iflow'");
|
|
const info = stmt.run();
|
|
console.log(`Deleted ${info.changes} rows.`);
|