package migra

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

doc/migra.engine/Migra_engine/Types/index.html

Module Migra_engine.TypesSource

Sourcetype db_conn = (module Caqti_lwt.CONNECTION)
Sourcetype file_error =
  1. | FileNotFound of string
  2. | InvalidFormat of string
  3. | ReadError of string * exn
  4. | AlreadyExists of string
Sourcetype db_error =
  1. | ConnectionFailed of string * Caqti_error.t
  2. | QueryFailed of string * Caqti_error.t
  3. | TransactionFailed of string * Caqti_error.t
  4. | DatabaseNotFound of string
  5. | UrlParseError of string
  6. | ValidationError of string
Sourcetype migration_error =
  1. | MissingSection of string * string
  2. | EmptySection of string * string
  3. | ParseError of file_error
  4. | VersionConflict of int64 * string * string
  5. | ChecksumMismatch of int64 * string
  6. | AppliedFileMissing of int64
  7. | OutOfOrder of int64 * int64
  8. | ExecutionFailed of int64 * string
Sourcetype error =
  1. | FileError of file_error
  2. | DatabaseError of db_error
  3. | MigrationError of migration_error
  4. | DiscoveryError of string
Sourceval of_caqti_error : context:string -> Caqti_error.t -> error
Sourceval show_error : error -> string