-
- On macOS, if you have Homebrew installed, run
brew install sqlite
- On macOS, if you have Homebrew installed, run
-
Install the SQLite ADBC driver:
dbc install --level user sqlite
-
Customize the C++ program
main.cppas needed- Change the connection arguments in the
AdbcDatabaseSetOption()calls- Set
urito the location of the SQLite database file you want to query, or keep it set togames.sqliteto use the database file included with this example
- Set
- If you changed the database file, 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 ./sqlite_demo
Or using CMake:
pixi run cmake -B build pixi run cmake --build build ./build/sqlite_demo
-
Clean build artifacts:
Using Make:
pixi run make clean
Using CMake:
rm -rf build