From fa061f88e295dc71f0a79e702c64904cb1c252a2 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 22 Aug 2022 01:42:04 +0600 Subject: [PATCH] refactor --- .../repos/exposed/keyvalue/ExposedReadKeyValueRepo.kt | 2 -- .../repos/exposed/onetomany/AbstractExposedKeyValueRepo.kt | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/keyvalue/ExposedReadKeyValueRepo.kt b/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/keyvalue/ExposedReadKeyValueRepo.kt index fe52ac4de69..7fa979d4a26 100644 --- a/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/keyvalue/ExposedReadKeyValueRepo.kt +++ b/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/keyvalue/ExposedReadKeyValueRepo.kt @@ -3,9 +3,7 @@ package dev.inmo.micro_utils.repos.exposed.keyvalue import dev.inmo.micro_utils.pagination.* import dev.inmo.micro_utils.repos.ReadKeyValueRepo import dev.inmo.micro_utils.repos.exposed.* -import dev.inmo.micro_utils.repos.exposed.utils.selectPaginated import org.jetbrains.exposed.sql.* -import org.jetbrains.exposed.sql.SqlExpressionBuilder.eq import org.jetbrains.exposed.sql.transactions.transaction open class ExposedReadKeyValueRepo( diff --git a/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/onetomany/AbstractExposedKeyValueRepo.kt b/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/onetomany/AbstractExposedKeyValueRepo.kt index dd7b319cf9b..c4ae2cd684a 100644 --- a/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/onetomany/AbstractExposedKeyValueRepo.kt +++ b/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/onetomany/AbstractExposedKeyValueRepo.kt @@ -15,13 +15,13 @@ abstract class AbstractExposedKeyValuesRepo( ) { protected val _onNewValue: MutableSharedFlow> = MutableSharedFlow() override val onNewValue: Flow> - get() = _onNewValue + get() = _onNewValue.asSharedFlow() protected val _onValueRemoved: MutableSharedFlow> = MutableSharedFlow() override val onValueRemoved: Flow> - get() = _onValueRemoved + get() = _onValueRemoved.asSharedFlow() protected val _onDataCleared: MutableSharedFlow = MutableSharedFlow() override val onDataCleared: Flow - get() = _onDataCleared + get() = _onDataCleared.asSharedFlow() protected abstract fun insert(k: Key, v: Value, it: InsertStatement)