package omigrate

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

Install

Dune Dependency

Authors

Maintainers

Sources

omigrate-0.1.0.tbz
sha256=396b32c67ca19c99be4628e0aaf493b090d49454f30acf6c999a1a3c5c6eba84
sha512=25daa55250ad2f2b32f114339e08312e7bef7bb64f7d16c6d5dc3e194a5b991f268d7016f607e8b8f998d73977322df1f6ca294443a3ffe159822c53e3bfa825

Description

Database migrations for Reason and OCaml

Published: 26 May 2020

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.

Dev Dependencies (1)

  1. odoc with-doc

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.