improvements in ExposedCRUDRepo

This commit is contained in:
2022-04-20 18:36:36 +06:00
parent b1ad3c5a39
commit b5eac37782
2 changed files with 6 additions and 0 deletions

View File

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