mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-12-18 14:47:15 +00:00
fixes in inheritance of interfaces
This commit is contained in:
parent
b5eac37782
commit
be4aa8daac
@ -5,6 +5,4 @@ import org.jetbrains.exposed.sql.*
|
||||
interface ExposedCRUDRepo<ObjectType, IdType> : ExposedRepo {
|
||||
val ResultRow.asObject: ObjectType
|
||||
val selectById: SqlExpressionBuilder.(IdType) -> Op<Boolean>
|
||||
val selectAll: Transaction.() -> Query
|
||||
get() = { (this as FieldSet).selectAll() }
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
val selectAll: Transaction.() -> Query
|
||||
get() = { (this@ExposedRepo as FieldSet).selectAll() }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user