-
Install the Snowflake ADBC driver:
dbc install --level user snowflake
-
Customize the C++ program
main.cpp- Change the connection arguments in the
AdbcDatabaseSetOption()calls- See Snowflake Driver Client Options for the full list of available options
- If you changed the database and schema, also change the SQL SELECT statement in
AdbcStatementSetSqlQuery()
- Change the connection arguments in the
-
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 build artifacts:
Using Make:
pixi run make clean
Using CMake:
rm -rf build