mirror of
https://github.com/InsanusMokrassar/PlaguBot.git
synced 2025-09-09 02:00:05 +00:00
replace database extension into externded file
This commit is contained in:
@@ -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()
|
@@ -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]
|
||||
*
|
||||
|
Reference in New Issue
Block a user