package omigrate

  1. Overview
  2. Docs
val default_user : string
val default_password : string
val default_port : int
val migrations_table : string
val quote_statement : string -> string
val ensure_version_table_exists : conn:Pgx_lwt_unix.t -> unit Lwt.t
val with_conn : host:string -> ?port:int -> ?user:string -> ?password:string -> ?database:string -> (Pgx_lwt_unix.t -> 'a Pgx_lwt_unix.Io.t) -> 'a Lwt.t
val with_transaction : host:string -> ?port:int -> ?user:string -> ?password:string -> ?database:string -> (Pgx_lwt_unix.t -> 'a Pgx_lwt_unix.Io.t) -> 'a Lwt.t
val database_exists : conn:Pgx_lwt_unix.t -> string -> bool Lwt.t
val up : host:string -> ?port:int -> ?user:string -> ?password:string -> database:string -> Omigrate.Migration.t -> unit Lwt.t
val down : host:string -> ?port:int -> ?user:string -> ?password:string -> database:string -> ?previous:Omigrate.Migration.t -> Omigrate.Migration.t -> unit Lwt.t
val create : host:string -> ?port:int -> ?user:string -> ?password:string -> string -> unit Lwt.t
val drop : host:string -> ?port:int -> ?user:string -> ?password:string -> string -> unit Lwt.t
val version : host:string -> ?port:int -> ?user:string -> ?password:string -> 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.