Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
include Sihl_core.Container.Service.Sig
val lifecycle : Sihl_core.Container.Lifecycle.t
val register_migration : Sihl_type.Migration.t -> unit
Register a migration, so it can be run by the service.
val register_migrations : Sihl_type.Migration.t list -> unit
Register multiple migrations.
val execute : Sihl_type.Migration.t list -> unit Lwt.t
Run a list of migrations.
val run_all : unit -> unit Lwt.t
Run all registered migrations.
val register :
?migrations:Sihl_type.Migration.t list ->
unit ->
Sihl_core.Container.Service.t