This is an exploration of the official guide at https://cashapp.github.io/sqldelight/2.0.0/jvm_postgresql/ with the intention of filling in missing pieces.
See blog post on medium for quick guide and explanation.
To run the sample app, you need to do the following
- Git clone the repo
- Rename/copy
sample-local.properties
intolocal.properties
i. Update all app configurations likedb_host
,db_password
, and so on - Create the database with the name that matches
db_name
config - Build the project to generate SQLDelight classes (e.g.
PlayerQueries
) i. Run./gradlew build
or./gradlew generateMainDatabaseInterface
- Run app from
Main.kt