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-1.0.1.tbz
sha256=daaaab416e580e5b8dc9f0a74482e142cef6d77b248d995d320f6f882d3a9e35
sha512=8f60494b9ee6ac2e7e69a16eefce69d1e8c22e831fe28f600a42200e3086e2f4d15331323ad1848f7165e1c8ff30fe320445185b7e988325588293a66937966a

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