From be4aa8daac83e75d1c9fe9fa66ed45df3ae3678f Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 20 Apr 2022 23:14:06 +0600 Subject: [PATCH] fixes in inheritance of interfaces --- .../dev/inmo/micro_utils/repos/exposed/ExposedCRUDRepo.kt | 2 -- .../dev/inmo/micro_utils/repos/exposed/ExposedRepo.kt | 8 +++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/ExposedCRUDRepo.kt b/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/ExposedCRUDRepo.kt index 87f812cf8f2..a7505f5e727 100644 --- a/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/ExposedCRUDRepo.kt +++ b/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/ExposedCRUDRepo.kt @@ -5,6 +5,4 @@ import org.jetbrains.exposed.sql.* interface ExposedCRUDRepo : ExposedRepo { val ResultRow.asObject: ObjectType val selectById: SqlExpressionBuilder.(IdType) -> Op - val selectAll: Transaction.() -> Query - get() = { (this as FieldSet).selectAll() } } diff --git a/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/ExposedRepo.kt b/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/ExposedRepo.kt index e2840eab68e..33705a71ef3 100644 --- a/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/ExposedRepo.kt +++ b/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/ExposedRepo.kt @@ -1,8 +1,10 @@ package dev.inmo.micro_utils.repos.exposed import dev.inmo.micro_utils.repos.Repo -import org.jetbrains.exposed.sql.Database +import org.jetbrains.exposed.sql.* -interface ExposedRepo : Repo { +interface ExposedRepo : Repo, FieldSet { val database: Database -} \ No newline at end of file + val selectAll: Transaction.() -> Query + get() = { (this@ExposedRepo as FieldSet).selectAll() } +}