package migra

  1. Overview
  2. No 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

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 (11)

  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. ocaml >= "4.14.0"
  11. 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