From 46c4bf7f11655cf83a007ee37690e1e43e65fd7e Mon Sep 17 00:00:00 2001 From: Hossain Khan Date: Sun, 16 Jun 2024 08:25:22 -0400 Subject: [PATCH] [UPDATE] Also added inline comment to guide future users Related to #13 --- src/main/kotlin/dev/hossain/postgresqldelight/Main.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/kotlin/dev/hossain/postgresqldelight/Main.kt b/src/main/kotlin/dev/hossain/postgresqldelight/Main.kt index 6c32767..7e1087d 100644 --- a/src/main/kotlin/dev/hossain/postgresqldelight/Main.kt +++ b/src/main/kotlin/dev/hossain/postgresqldelight/Main.kt @@ -13,6 +13,12 @@ fun main(args: Array) { println("Begin SQLDelight 2.0 with PostgreSQL Sample!") val appConfig: AppConfig = AppConfigLoader().loadAppConfig() val sportsRepository = SportsRepository() + // ℹ️ NOTE: + // ================= + // If your `PlayerQueries` is marked red, that means the generated class is not available. + // You have to run the following gradle task to generate the class. + // - generateSqlDelightInterface: Aggregation task which runs every interface generation task for every given source + // Run `./gradlew generateSqlDelightInterface` from terminal or from IntelliJ IDEA Gradle tool window. val playerQueries: PlayerQueries = sportsRepository.getPlayerQueries(appConfig) testDriveDatabase(playerQueries, faker { })