Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Connecting JavaScript and chDB with ADBC

Instructions

Note

The chDB ADBC driver supports Linux and macOS. Windows is not currently supported.

Prerequisites

  1. Install Node.js (version 22 or later)

    • Alternatively, you can use Bun or Deno
  2. Install dbc

Connect to chDB

  1. Install the chDB ADBC driver:

    dbc install chdb
  2. Install dependencies:

    npm --prefix .. install
  3. Customize the script main.js as needed

    • Change the SQL SELECT statement in conn.query(), or keep it set to SELECT * FROM 'games.parquet'; to query the Parquet file included with this example
  4. Run the script:

    Node.js:

    node main.js

    Bun:

    bun run main.js

    Deno:

    deno run --allow-ffi --allow-env main.js