mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 19:21:54 +03:00
create inmem database (#3690)
This commit is contained in:
parent
0f168abbfa
commit
05a6415ec0
@ -9,7 +9,6 @@ import org.enso.distribution.{DistributionManager, Environment, LanguageHome}
|
||||
import org.enso.editions.EditionResolver
|
||||
import org.enso.editions.updater.EditionManager
|
||||
import org.enso.jsonrpc.JsonRpcServer
|
||||
import org.enso.languageserver.boot.DeploymentType.{Azure, Desktop}
|
||||
import org.enso.languageserver.capability.CapabilityRouter
|
||||
import org.enso.languageserver.data._
|
||||
import org.enso.languageserver.effect
|
||||
@ -109,13 +108,7 @@ class MainModule(serverConfig: LanguageServerConfig, logLevel: LogLevel) {
|
||||
Sha3_224VersionCalculator
|
||||
log.trace("Created Version Calculator [{}].", versionCalculator)
|
||||
|
||||
val sqlDatabase =
|
||||
DeploymentType.fromEnvironment() match {
|
||||
case Desktop =>
|
||||
SqlDatabase(languageServerConfig.directories.suggestionsDatabaseFile)
|
||||
case Azure =>
|
||||
SqlDatabase.inmem("memdb")
|
||||
}
|
||||
val sqlDatabase = SqlDatabase.inmem("memdb")
|
||||
|
||||
val suggestionsRepo = new SqlSuggestionsRepo(sqlDatabase)(system.dispatcher)
|
||||
val versionsRepo = new SqlVersionsRepo(sqlDatabase)(system.dispatcher)
|
||||
|
@ -263,5 +263,5 @@ object SuggestionsVersion extends TableQuery(new SuggestionsVersionTable(_))
|
||||
object SchemaVersion extends TableQuery(new SchemaVersionTable(_)) {
|
||||
|
||||
/** The current schema version. */
|
||||
val CurrentVersion: Long = 6
|
||||
val CurrentVersion: Long = 7
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user