A sample project exercising PostgreSQL with SQLDelight 2.0 on JVM
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.propertiesintolocal.properties
i. Update all app configurations likedb_host,db_password, and so on - Create the database with the name that matches
db_nameconfig - Build the project to generate SQLDelight classes (e.g.
PlayerQueries) i. Run./gradlew buildor./gradlew generateMainDatabaseInterface - Run app from
Main.kt