diff --git a/build.gradle.kts b/build.gradle.kts index c2ec6bf..fb8ba58 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -14,7 +14,7 @@ plugins { } group = "io.github.asm0dey" -version = "2.0.0" +version = "2.0.1" application { mainClass.set("io.github.asm0dey.ApplicationKt") diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 62a4abc..80808af 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -27,7 +27,6 @@ kotlin = "1.9.23" ## ⬆ = "2.0.0-RC1" ktor = "2.3.10" -##⬆ = "2.3.10" ##⬆ = "3.0.0-beta-1" kodein-di = "7.21.2" diff --git a/src/main/kotlin/io/github/asm0dey/plugins/di.kt b/src/main/kotlin/io/github/asm0dey/plugins/di.kt index 8d04e45..19f464d 100644 --- a/src/main/kotlin/io/github/asm0dey/plugins/di.kt +++ b/src/main/kotlin/io/github/asm0dey/plugins/di.kt @@ -56,7 +56,7 @@ fun Application.ioc() { val settings: Settings = Settings() .withRenderImplicitJoinType(INNER_JOIN) .withRenderImplicitJoinToManyType(RenderImplicitJoinType.LEFT_JOIN) - DSL.using(instance(), SQLDialect.POSTGRES, settings).apply { + DSL.using(instance(), SQLDialect.SQLITE, settings).apply { configuration().set(DefaultExecuteListenerProvider(CustomLogger())) } } diff --git a/src/main/kotlin/io/github/asm0dey/repository/Repository.kt b/src/main/kotlin/io/github/asm0dey/repository/Repository.kt index af4f10a..96a8e8b 100644 --- a/src/main/kotlin/io/github/asm0dey/repository/Repository.kt +++ b/src/main/kotlin/io/github/asm0dey/repository/Repository.kt @@ -62,7 +62,7 @@ class Repository(val create: DSLContext) { collect(Records.intoList()) private val bookById = run { - val bookAlias = io.github.asm0dey.opdsko.jooq.tables.Book("b") + val bookAlias = BOOK.`as`("b") multiset(selectFrom(bookAlias).where(bookAlias.ID.eq(BOOK.ID))) .`as`("book") .convertFrom { it.into(Book::class.java) } diff --git a/src/main/resources/application.conf b/src/main/resources/application.conf index 57f98fa..2fe6684 100644 --- a/src/main/resources/application.conf +++ b/src/main/resources/application.conf @@ -21,7 +21,7 @@ ktor { } } db { - url = "jdbc:postgresql://localhost:5432/opds" + url = "jdbc:sqlite:opds.db" url = ${?DB_URL} username = "pg" username = ${?DB_USER}