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() } +}