Skip to content

[UPDATE] Readme updated to generate SQLdelight classes #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading