package migra

  1. Overview
  2. Docs

Module Migra.TypesSource

include module type of struct include Migra_engine.Types end
Sourcetype db_conn = (module Caqti_lwt.CONNECTION)
Sourcetype file_error = Migra_engine.Types.file_error =
  1. | FileNotFound of string
  2. | InvalidFormat of string
  3. | ReadError of string * exn
  4. | AlreadyExists of string
Sourcetype db_error = Migra_engine.Types.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 = Migra_engine.Types.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 = Migra_engine.Types.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