Skip to content

Commit

Permalink
[#3087] Move JVM Database to disk (#3092)
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaozhan authored Jan 18, 2024
1 parent bcd88f5 commit 2ebef11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import com.squareup.sqldelight.sqlite.driver.JdbcSqliteDriver
import org.koin.core.scope.Scope

actual fun Scope.provideDatabase(databaseName: String) = CurrencyConverterCalculatorDatabase(
JdbcSqliteDriver(JdbcSqliteDriver.IN_MEMORY)
JdbcSqliteDriver("jdbc:sqlite:$databaseName.db")
.also { CurrencyConverterCalculatorDatabase.Schema.create(it) }
)

0 comments on commit 2ebef11

Please sign in to comment.