You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,12 @@ See [blog post](https://medium.com/@hossainkhan/using-sqldelight-2-0-with-postgr
10
10
## 🚗 Test Drive
11
11
To run the sample app, you need to do the following
12
12
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`
14
14
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)
0 commit comments