mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-09-09 02:00:01 +00:00
improvements in ExposedCRUDRepo
This commit is contained in:
@@ -5,4 +5,6 @@ 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() }
|
||||
}
|
||||
|
Reference in New Issue
Block a user