-
- 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 the
mainmethod inExample.java- Change the connection arguments in the
params.put()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
stmt.setSqlQuery()
- Change the connection arguments in the
-
Run the Java program:
mvn compile exec:exec