generated from InsanusMokrassar/TelegramBotAPI-bot_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace database extension into externded file
- Loading branch information
1 parent
a7fe1e3
commit 4342e04
Showing
2 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
plugin/src/main/kotlin/dev/inmo/plagubot/KoinDatabaseExtensions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters