package migra

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

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