mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-12-20 23:57:16 +00:00
improvements in ExposedCRUDRepo
This commit is contained in:
parent
b1ad3c5a39
commit
b5eac37782
@ -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`:
|
||||
|
@ -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() }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user