Module Migra_engine.DiscoverySource

Sourcemodule Int64Set : Set.S with type elt = int64
Sourceval default_migrations_dir : string
Sourceval applied_set_of_list : int64 list -> Int64Set.t
Sourceval is_migration_file : string -> bool
Sourceval read_directory : string -> (string list, Types.error) result
Sourceval find_migrations : ?dir:string -> unit -> (Migration.t list, Types.error) result
Sourceval find_pending : int64 list -> Migration.t list -> Migration.t list

Find pending migrations (not yet applied). Takes a list of applied versions and all discovered migrations, returns migrations that haven't been applied yet.

Sourceval find_by_version : Migration.t list -> int64 -> Migration.t option
Sourceval ensure_migrations_dir : ?dir:string -> unit -> (unit, Types.error) result