improvements in ExposedCRUDRepo

This commit is contained in:
InsanusMokrassar committed 2022-04-20 18:41:42 +06:00
1 parent b1ad3c5a39
commit b5eac37782
2 files changed
+6

No files matched your search

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