Compare commits

..

No commits in common. "92a4ecb5236777021705a5c64e5f6cf1bb4ec9e1" and "ba16bad0293b087ab77e540109c946bebaabf6dd" have entirely different histories.

3 changed files with 5 additions and 13 deletions

View File

@ -1,11 +1,5 @@
# Changelog
## 0.9.23
* `Repos`:
* `Exposed`:
* New property `ExposedRepo#selectAll` to retrieve all the rows in the table
## 0.9.22
* `Ktor`:

View File

@ -14,5 +14,5 @@ crypto_js_version=4.1.1
# Project data
group=dev.inmo
version=0.9.23
android_code_version=113
version=0.9.22
android_code_version=112

View File

@ -1,10 +1,8 @@
package dev.inmo.micro_utils.repos.exposed
import dev.inmo.micro_utils.repos.Repo
import org.jetbrains.exposed.sql.*
import org.jetbrains.exposed.sql.Database
interface ExposedRepo : Repo, FieldSet {
interface ExposedRepo : Repo {
val database: Database
val selectAll: Transaction.() -> Query
get() = { (this@ExposedRepo as FieldSet).selectAll() }
}