Skip to content

Commit

Permalink
replace database extension into externded file
Browse files Browse the repository at this point in the history
  • Loading branch information
InsanusMokrassar committed Sep 22, 2024
1 parent a7fe1e3 commit 4342e04
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
11 changes: 11 additions & 0 deletions plugin/src/main/kotlin/dev/inmo/plagubot/KoinDatabaseExtensions.kt
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()
6 changes: 0 additions & 6 deletions plugin/src/main/kotlin/dev/inmo/plagubot/KoinExtensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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]
*
Expand Down

0 comments on commit 4342e04

Please sign in to comment.