package migra

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

migra-2.1.0.tbz
sha256=6d27c8f27cbb99b6a0b6a457adf87508be187793c9d9a7bc5214a6cb6b0e2e65
sha512=c65e7bde436979e5fb5760b9623f03df086b774b54080fb708a691c919abe5a5e606e421667a98b985cfdb339e30cf3b38a2d6c7e1852404d58b9d58b57604c4

Description

A database migration tool and library for OCaml. Migrations are plain SQL with up and down sections, and the database (PostgreSQL, MariaDB/MySQL, or SQLite) is selected from the connection URL. Applied migrations are tracked with checksums, and drift (a modified, missing, or out-of-order migration) is detected before anything runs. It can be used from the command line or embedded as a library to migrate on application startup.

Dependencies (12)

  1. fmt >= "0.9.0"
  2. logs-ppx >= "0.2.0"
  3. logs >= "0.7.0"
  4. cmdliner >= "2.0.0"
  5. uri >= "4.4.0"
  6. caqti-dynload >= "2.0.0"
  7. caqti-lwt >= "2.0.0"
  8. caqti >= "2.0.0"
  9. lwt >= "5.6.0"
  10. dune-build-info >= "3.12"
  11. ocaml >= "4.14.0"
  12. dune >= "3.12"

Dev Dependencies (3)

  1. odoc with-doc
  2. alcotest-lwt with-test & >= "1.7.0"
  3. alcotest with-test & >= "1.7.0"

Used by

None

Conflicts

None