From 369c1771edd972d031cce4665c5e5b060e05a27c Mon Sep 17 00:00:00 2001 From: Hossain Khan Date: Sun, 16 Jun 2024 08:16:36 -0400 Subject: [PATCH] [UPDATE] Readme updated to generate SQLdelight classes Closes #13 --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dd1ecd0..5c7856f 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,12 @@ See [blog post](https://medium.com/@hossainkhan/using-sqldelight-2-0-with-postgr ## 🚗 Test Drive To run the sample app, you need to do the following 1. Git clone the repo -1. Rename/copy `sample-local.properties` into `local.properties` +2. Rename/copy `sample-local.properties` into `local.properties` i. Update all app configurations like `db_host`, `db_password`, and so on -1. Create the database with the name that matches `db_name` config -1. Run app from [`Main.kt`](https://github.com/hossain-khan/SQLDelight-PostgreSQL-JVM-sample/blob/main/src/main/kotlin/dev/hossain/postgresqldelight/Main.kt) +3. Create the database with the name that matches `db_name` config +4. Build the project to generate SQLDelight classes (e.g. `PlayerQueries`) + i. Run `./gradlew build` or `./gradlew generateMainDatabaseInterface` +5. Run app from [`Main.kt`](https://github.com/hossain-khan/SQLDelight-PostgreSQL-JVM-sample/blob/main/src/main/kotlin/dev/hossain/postgresqldelight/Main.kt) ## 📚 Resources * https://cashapp.github.io/sqldelight