package omigrate

  1. Overview
  2. Docs
Database migrations for Reason and OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

omigrate-0.3.2.tbz
sha256=7df11359cb7175891a6776d552ef12641d54f330ab187e913f15166970ef46bf
sha512=83599cf881ffc26027dad200dad1156cc8d220b6f45ad23b758f4eaea6e21359ec2517d753f5facabf682b10f284341bdbdec121563b7096a94a110ce1933b47

doc/omigrate/Omigrate/index.html

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
OCaml

Innovation. Community. Security.