Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Connecting Java and chDB with ADBC

Instructions

Note

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

Prerequisites

  1. Install Maven

  2. Install dbc

Connect to chDB

  1. Install the chDB ADBC driver:

    dbc install chdb
  2. Customize the main method in Example.java

    • Change the SQL SELECT statement in stmt.setSqlQuery(), or keep it set to SELECT * FROM 'games.parquet'; to query the Parquet file included with this example
  3. Run the Java program:

    mvn compile exec:exec