package migra

  1. Overview
  2. Docs
A database migration tool for OCaml supporting PostgreSQL, MariaDB, and SQLite

Install

dune-project
 Dependency

Authors

Maintainers

Sources

migra-1.0.0.tbz
sha256=08ceb8f21f00227f21209484ef1eb8cc326ed26a280747798ec5b0b7c5fdd678
sha512=70050833623ba7801a0a31b1700f5473903335c8db2cdf4de5bbd1876180ec0a93907444b42f7a39b6af454303e0ee5f4c3543ca51378d6324583a26b93f535c

doc/migra.engine/Migra_engine/Discovery/index.html

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