package omigrate

  1. Overview
  2. Docs
Database migrations for Reason and OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

omigrate-0.1.1.tbz
sha256=274a85d581eaccdc291a1cfa7266c8e634e65f32e1c5ac54be3094d3d64ebad2
sha512=a152330c8003b1ff0bc8c50026ed21c53690b7f935c3150e4c87a19b62c5d9540e4601731414541587ebbd467e80658b211dbf38918b359fc5626c3df7e33365

Description

Database migrations for Reason and OCaml

Published: 03 Nov 2021

README

OCaml Migrate

Database migrations for Reason and OCaml

Drivers

  • PosgreSQL (omigrate.postgres)

Installation

Using Opam

opam install omigrate

Using Esy

esy add @opam/omigrate

Usage

omigrate create --dir DIR NAME

Create a new migration and prepend it with a timestamp.

omigrate ls --source SOURCE --database DATABASE

List the migrations with their state.

omigrate up --source SOURCE --database DATABASE

Apply all up migrations.

omigrate down --source SOURCE --database DATABASE

Apply all down migrations.

omigrate setup --source SOURCE --database DATABASE

Setup the database and run all the migrations.

omigrate drop --database DATABASE

Delete the database.

Contributing

Take a look at our Contributing Guide.

Dependencies (9)

  1. pgx_lwt_unix
  2. pgx
  3. fmt >= "0.8.7"
  4. logs
  5. cmdliner
  6. uri
  7. lwt >= "5.3.0"
  8. dune >= "2.0"
  9. ocaml >= "4.08.0"

Dev Dependencies (1)

  1. odoc with-doc

Used by

None

Conflicts (1)

  1. result < "1.5"
OCaml

Innovation. Community. Security.