Skip to content

Commit 369c177

Browse files
committed
[UPDATE] Readme updated to generate SQLdelight classes
Closes #13
1 parent c2e89fe commit 369c177

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ See [blog post](https://medium.com/@hossainkhan/using-sqldelight-2-0-with-postgr
1010
## 🚗 Test Drive
1111
To run the sample app, you need to do the following
1212
1. Git clone the repo
13-
1. Rename/copy `sample-local.properties` into `local.properties`
13+
2. Rename/copy `sample-local.properties` into `local.properties`
1414
i. Update all app configurations like `db_host`, `db_password`, and so on
15-
1. Create the database with the name that matches `db_name` config
16-
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)
15+
3. Create the database with the name that matches `db_name` config
16+
4. Build the project to generate SQLDelight classes (e.g. `PlayerQueries`)
17+
i. Run `./gradlew build` or `./gradlew generateMainDatabaseInterface`
18+
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)
1719

1820
## 📚 Resources
1921
* https://cashapp.github.io/sqldelight

0 commit comments

Comments
 (0)