improvements in ExposedCRUDRepo

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

View File

@ -2,6 +2,10 @@
## 0.9.23
* `Repos`:
* `Exposed`:
* New property `ExposedCRUDRepo#selectAll` to retrieve all the rows in the table
## 0.9.22
* `Ktor`:

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