replace database extension into externded file

This commit is contained in:
InsanusMokrassar 2024-09-22 19:39:45 +06:00
parent a7fe1e3d82
commit 4342e04e3f
2 changed files with 11 additions and 6 deletions

View File

@ -0,0 +1,11 @@
package dev.inmo.plagubot
import org.jetbrains.exposed.sql.Database
import org.koin.core.Koin
import org.koin.core.scope.Scope
val Scope.database: Database
get() = get()
val Koin.database: Database
get() = get()

View File

@ -11,12 +11,6 @@ import org.koin.core.module.Module
import org.koin.core.scope.Scope
import kotlin.reflect.KClass
val Scope.database: Database
get() = get()
val Koin.database: Database
get() = get()
/**
* Using [single] to register `T` with serializer [configSerializer]
*