You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NB: Offline evolutions are those without a running application.
Currently DefaultSlickApi has two dependencies that are hard to satisfy in a non-application context: environment: Environment and lifecycle: ApplicationLifecycle.
environment is a bogus dependency; it is unused, and should be dropped.
lifecycle implements behavior that is pretty easy to ignore if there's no lifecycle - just don't add the stop hooks. This dependency should either be made into a Option[ApplicationLifecycle] (don't know if that's doable with generic javax.inject) for both DefaultSlickApi and DatabaseConfigFactory; or, DefaultSlickApi/DatabaseConfigFactory should extend an OfflineSlickApi does the same thing but without the stop hook. In this case, the user would need some other way to initiate a shutdown.
The text was updated successfully, but these errors were encountered:
NB: Offline evolutions are those without a running application.
Currently DefaultSlickApi has two dependencies that are hard to satisfy in a non-application context:
environment: Environment
andlifecycle: ApplicationLifecycle
.environment
is a bogus dependency; it is unused, and should be dropped.lifecycle
implements behavior that is pretty easy to ignore if there's no lifecycle - just don't add the stop hooks. This dependency should either be made into aOption[ApplicationLifecycle]
(don't know if that's doable with genericjavax.inject
) for both DefaultSlickApi andDatabaseConfigFactory
; or, DefaultSlickApi/DatabaseConfigFactory should extend an OfflineSlickApi does the same thing but without the stop hook. In this case, the user would need some other way to initiate a shutdown.The text was updated successfully, but these errors were encountered: