-
- 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 sqlite
-
Customize
src/main.rsas needed- Change the database arguments in
opts- Replace "games.sqlite" to the location of the SQLite database file you want to query, or keep it set to
games.sqliteto use the database file included with this example
- Replace "games.sqlite" to the location of the SQLite database file you want to query, or keep it set to
- If you changed the database file, also change the SQL SELECT statement in
statement.set_sql_query()
- Change the database arguments in
-
Run the Rust program:
cargo run