Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Connecting C++ and Snowflake with ADBC

Instructions

Prerequisites

  1. Install Pixi

  2. Install dbc

Connect to Snowflake

  1. Install the Snowflake ADBC driver:

    dbc install --level user snowflake
  2. Customize the C++ program main.cpp

    • Change the connection arguments in the AdbcDatabaseSetOption() calls
    • If you changed the database and schema, also change the SQL SELECT statement in AdbcStatementSetSqlQuery()
  3. Build and run the C++ program:

    Using Make:

    pixi run make
    ./snowflake_demo

    Or using CMake:

    pixi run cmake -B build
    pixi run cmake --build build
    ./build/snowflake_demo

Clean up

  1. Clean build artifacts:

    Using Make:

    pixi run make clean

    Using CMake:

    rm -rf build