Spaces:
Paused
Paused
Download scripts/scratch/query_db.js from igorkurgin/omniroute: direct link, hf CLI and curl.
- Browser
- Download file 394 Bytes
-
https://huggingface.co/spaces/igorkurgin/omniroute/resolve/main/scripts/scratch/query_db.js
- Command line
-
hf download hf://spaces/igorkurgin/omniroute/scripts/scratch/query_db.js
-
curl -L -o query_db.js https://huggingface.co/spaces/igorkurgin/omniroute/resolve/main/scripts/scratch/query_db.js
394 Bytes
| const Database = require("better-sqlite3"); | |
| const db = new Database(process.env.HOME + "/.omniroute/storage.sqlite"); | |
| console.log("=== provider_connections containing iflow ==="); | |
| console.log( | |
| db | |
| .prepare( | |
| "SELECT id, provider_id, alias, account_id FROM provider_connections WHERE provider_id LIKE '%iflow%' OR alias LIKE '%iflow%' OR account_id LIKE '%iflow%'" | |
| ) | |
| .all() | |
| ); | |