package omigrate

  1. Overview
  2. Docs

Module OmigrateSource

Sourcemodule Connection = Driver.Connection
Sourceval with_driver : f: ((module Driver.S) -> Omigrate__Driver.Connection.t -> ('a, [ `Unknown_driver of string | `Bad_uri of string | `Invalid_source of string ]) Lwt_result.t) -> string -> ('a, [ `Unknown_driver of string | `Bad_uri of string | `Invalid_source of string ]) Lwt_result.t
Sourceval db_version : database:string -> ((int64 * bool) option, [ `Unknown_driver of string | `Bad_uri of string | `Invalid_source of string ]) Lwt_result.t
Sourceval fetch_version : (module Driver.S) -> bound:int64 -> bool -> Connection.t -> (int64, 'a) result Lwt.t
Sourceval source_versions : source:string -> (Migration.t list, [ `Unknown_driver of string | `Bad_uri of string | `Invalid_source of string ]) result
Sourceval up : ?force:bool -> source:string -> database:string -> unit -> (unit, [ `Unknown_driver of string | `Bad_uri of string | `Invalid_source of string ]) Lwt_result.t
Sourceval down : ?force:bool -> source:string -> database:string -> unit -> (unit, [ `Unknown_driver of string | `Bad_uri of string | `Invalid_source of string ]) Lwt_result.t
Sourceval create : database:string -> (unit, [ `Unknown_driver of string | `Bad_uri of string | `Invalid_source of string ]) Lwt_result.t
Sourceval drop : database:string -> (unit, [ `Unknown_driver of string | `Bad_uri of string | `Invalid_source of string ]) Lwt_result.t
Sourcemodule Error : sig ... end
Sourcemodule Migration : sig ... end
Sourcemodule Driver : sig ... end