package omigrate

  1. Overview
  2. Docs
val migrations_table : string
val quote_statement : string -> string
val to_opt_pair : 'a option -> 'b option -> ('a * 'b) option
val database_exists : string -> bool Lwt.t
val delete_database : string -> unit Lwt.t
val ensure_version_table_exists : Db.t -> unit Lwt.t
val up : host:'a -> ?port:'b -> ?user:'c -> ?password:'d -> database:string -> Omigrate.Migration.t -> unit Lwt.t
val down : host:'a -> ?port:'b -> ?user:'c -> ?password:'d -> database:string -> ?previous:Omigrate.Migration.t -> Omigrate.Migration.t -> unit Lwt.t
val create : host:'a -> ?port:'b -> ?user:'c -> ?password:'d -> string -> unit Lwt.t
val drop : host:'a -> ?port:'b -> ?user:'c -> ?password:'d -> string -> unit Lwt.t
val version : host:'a -> ?port:'b -> ?user:'c -> ?password:'d -> database:string -> unit -> (int64 * bool) option Lwt.t
val parse_uri : string -> (Omigrate.Driver.Connection.t, [ `Bad_uri of string | `Invalid_source of string | `Unknown_driver of string ]) result
OCaml

Innovation. Community. Security.