mirror of
https://github.com/InsanusMokrassar/PlaguBot.git
synced 2024-11-21 07:03:47 +00:00
replace database extension into externded file
This commit is contained in:
parent
a7fe1e3d82
commit
4342e04e3f
@ -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]
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user