-
Install Node.js (version 22 or later)
-
- On macOS, if you have Homebrew installed, run
brew install sqlite
- On macOS, if you have Homebrew installed, run
-
Install the SQLite ADBC driver:
dbc install sqlite
-
Install dependencies:
npm --prefix .. install
-
Customize the script
main.jsas needed- Change the
uriindatabaseOptionsto the location of the SQLite database file you want to query, or keep it set togames.sqliteto use the database file included with this example - If you changed the database file, also change the SQL SELECT statement in
conn.query()
- Change the
-
Run the script:
Node.js:
node main.js
Bun:
bun run main.js
Deno:
deno run --allow-ffi --allow-env main.js