package omigrate

  1. Overview
  2. Docs
module Connection = Driver.Connection
val 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 -> ('b, [ `Unknown_driver of string | `Bad_uri of string | `Invalid_source of string ]) Lwt_result.t
val db_version : database:string -> ((int64 * bool) option, [ `Unknown_driver of string | `Bad_uri of string | `Invalid_source of string ]) Lwt_result.t
val fetch_version : (module Driver.S) -> bound:int64 -> bool -> Connection.t -> (int64, 'a) Stdlib.result Lwt.t
val source_versions : source:string -> (Migration.t list, [ `Unknown_driver of string | `Bad_uri of string | `Invalid_source of string ]) Stdlib.result
val up : ?force:bool -> source:string -> database:string -> unit -> (unit, [ `Unknown_driver of string | `Bad_uri of string | `Invalid_source of string ]) Lwt_result.t
val down : ?force:bool -> source:string -> database:string -> unit -> (unit, [ `Unknown_driver of string | `Bad_uri of string | `Invalid_source of string ]) Lwt_result.t
val create : database:string -> (unit, [ `Unknown_driver of string | `Bad_uri of string | `Invalid_source of string ]) Lwt_result.t
val drop : database:string -> (unit, [ `Unknown_driver of string | `Bad_uri of string | `Invalid_source of string ]) Lwt_result.t
module Error : sig ... end
module Migration : sig ... end
module Driver : sig ... end