8000 GitHub - joprice/omigrate: Database migrations for Reason and OCaml
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

joprice/omigrate

 
 

Repository files navigation

OCaml Migrate

Actions Status

Database migrations for Reason and OCaml

Drivers

  • PosgreSQL (omigrate.postgres)
  • Sqlite3 (omigrate.sqlite3)

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.

Examples

The example provides some migrations available to test omigrate with the different drivers.

Contributing

Take a look at our Contributing Guide.

About

Database migrations for Reason and OCaml

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • OCaml 84.4%
  • Perl 7.7%
  • PLpgSQL 5.9%
  • Makefile 2.0%
0