package omigrate

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

Install

Dune Dependency

Authors

Maintainers

Sources

omigrate-0.3.0.tbz
sha256=b9ab8bcb23153797057635dabb45492694ff9ccea2bf16e7569d6c926eacf98d
sha512=ab555df902120771507c66bbae317f89fcf31836697213fe5c09d8bdf1596128902f04b7b1017c4d9f9645ec0a0643b18c8608e580ceabdd96ad73146249cfb9

doc/omigrate.postgres/Omigrate_postgres/Postgres/T/index.html

Module Postgres.TSource

Sourceval default_user : string
Sourceval default_password : string
Sourceval default_port : int
Sourceval migrations_table : string
Sourceval quote_statement : string -> string
Sourceval ensure_version_table_exists : conn:Pgx_lwt_unix.t -> unit Lwt.t
Sourceval 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
Sourceval 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
Sourceval database_exists : conn:Pgx_lwt_unix.t -> string -> bool Lwt.t
Sourceval up : host:string -> ?port:int -> ?user:string -> ?password:string -> database:string -> Omigrate.Migration.t -> unit Lwt.t
Sourceval down : host:string -> ?port:int -> ?user:string -> ?password:string -> database:string -> ?previous:Omigrate.Migration.t -> Omigrate.Migration.t -> unit Lwt.t
Sourceval create : host:string -> ?port:int -> ?user:string -> ?password:string -> string -> unit Lwt.t
Sourceval drop : host:string -> ?port:int -> ?user:string -> ?password:string -> string -> unit Lwt.t
Sourceval version : host:string -> ?port:int -> ?user:string -> ?password:string -> database:string -> unit -> (int64 * bool) option Lwt.t
Sourceval parse_uri : string -> (Omigrate.Driver.Connection.t, [ `Bad_uri of string | `Invalid_source of string | `Unknown_driver of string ]) result
OCaml

Innovation. Community. Security.