Note
The chDB ADBC driver supports Linux and macOS. Windows is not currently supported.
-
Install Node.js (version 22 or later)
-
Install the chDB ADBC driver:
dbc install chdb
-
Install dependencies:
npm --prefix .. install
-
Customize the script
main.jsas needed- Change the SQL SELECT statement in
conn.query(), or keep it set toSELECT * FROM 'games.parquet';to query the Parquet file included with this example
- Change the SQL SELECT statement in
-
Run the script:
Node.js:
node main.js
Bun:
bun run main.js
Deno:
deno run --allow-ffi --allow-env main.js