From a43199a37f234886b78cf5684e140d712c4b33d8 Mon Sep 17 00:00:00 2001 From: Brendan Long Date: Wed, 12 May 2021 09:07:27 -0600 Subject: [PATCH] [new release] pgx_lwt_mirage, pgx_value_core, pgx_async, pgx_unix, pgx_lwt_unix, pgx_lwt and pgx (2.0) CHANGES: ### Breaking changes * The Pgx module is now wrapped, which means `Pgx_aux`, `Types`, `Access`, etc. aren't added to the global scope. The main result of this is that `Pgx_value` now needs to be accessed as `Pgx.Value`. (https://github.com/arenadotio/pgx/pull/103) * `Pgx_async.connect` and `with_conn` now have an additional optional `?ssl` argument (see below). ### Added * Pgx_async now supports TLS connections using Conduit_async. This is enabled by default and can be controlled with the new `?ssl` argument to `connect` and `with_conn`. (https://github.com/arenadotio/pgx/pull/108) ### Fixed * Improved message for authentication errors. Previously these raised `Pgx_eof`, and now they raise `PostgreSQL_Error("Failed to authenticate with postgres server", additional details ...)`. (https://github.com/arenadotio/pgx/pull/105) ### Changed * Support new Mirage-conduit timeout argument (https://github.com/arenadotio/pgx/pull/95). --- packages/pgx/pgx.2.0/opam | 49 +++++++++++++++++++ packages/pgx_async/pgx_async.2.0/opam | 45 +++++++++++++++++ packages/pgx_lwt/pgx_lwt.2.0/opam | 40 +++++++++++++++ .../pgx_lwt_mirage/pgx_lwt_mirage.2.0/opam | 48 ++++++++++++++++++ packages/pgx_lwt_unix/pgx_lwt_unix.2.0/opam | 41 ++++++++++++++++ packages/pgx_unix/pgx_unix.2.0/opam | 41 ++++++++++++++++ .../pgx_value_core/pgx_value_core.2.0/opam | 40 +++++++++++++++ 7 files changed, 304 insertions(+) create mode 100644 packages/pgx/pgx.2.0/opam create mode 100644 packages/pgx_async/pgx_async.2.0/opam create mode 100644 packages/pgx_lwt/pgx_lwt.2.0/opam create mode 100644 packages/pgx_lwt_mirage/pgx_lwt_mirage.2.0/opam create mode 100644 packages/pgx_lwt_unix/pgx_lwt_unix.2.0/opam create mode 100644 packages/pgx_unix/pgx_unix.2.0/opam create mode 100644 packages/pgx_value_core/pgx_value_core.2.0/opam diff --git a/packages/pgx/pgx.2.0/opam b/packages/pgx/pgx.2.0/opam new file mode 100644 index 00000000000..4a497dcd1c4 --- /dev/null +++ b/packages/pgx/pgx.2.0/opam @@ -0,0 +1,49 @@ +opam-version: "2.0" +synopsis: "Pure-OCaml PostgreSQL client library" +description: + "PGX is a pure-OCaml PostgreSQL client library, supporting Async, LWT, or synchronous operations." +maintainer: ["Arena Developers "] +authors: ["Arena Developers "] +license: "LGPL-2 with OCaml linking exception" +homepage: "https://github.com/arenadotio/pgx" +doc: "https://arenadotio.github.io/pgx" +bug-reports: "https://github.com/arenadotio/pgx/issues" +depends: [ + "alcotest" {with-test & >= "1.0.0"} + "bisect_ppx" {dev & >= "2.0.0"} + "dune" {>= "1.11"} + "hex" + "ipaddr" + "ocaml" {>= "4.08"} + "odoc" {with-doc} + "ppx_compare" {>= "v0.13.0"} + "ppx_custom_printf" {>= "v0.13.0"} + "ppx_sexp_conv" {>= "v0.13.0"} + "re" + "sexplib0" {>= "v0.13.0"} + "uuidm" +] +build: [ + ["dune" "subst"] {pinned} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@runtest" {with-test} + "@doc" {with-doc} + ] +] +dev-repo: "git+https://github.com/arenadotio/pgx.git" +x-commit-hash: "b73b09d8e376f0ba10219f9b860e33ea94281461" +url { + src: + "https://github.com/arenadotio/pgx/releases/download/2.0/pgx_lwt_mirage-2.0.tbz" + checksum: [ + "sha256=be6bac83e4030b6225f3966fd482b242818ff1147efc273163d4a9cd749b62bd" + "sha512=c18e3b7d246f184c5a689d081f613937d569f9b794b95e586c5c16ddb7402581049642dd20852ec95316c4681b70f5e8f494fc9475adecf64d53b13d70257c98" + ] +} diff --git a/packages/pgx_async/pgx_async.2.0/opam b/packages/pgx_async/pgx_async.2.0/opam new file mode 100644 index 00000000000..0b7aeaa2ccf --- /dev/null +++ b/packages/pgx_async/pgx_async.2.0/opam @@ -0,0 +1,45 @@ +opam-version: "2.0" +synopsis: "Pgx using Async for IO" +description: "Pgx using Async for IO" +maintainer: ["Arena Developers "] +authors: ["Arena Developers "] +license: "LGPL-2 with OCaml linking exception" +homepage: "https://github.com/arenadotio/pgx" +doc: "https://arenadotio.github.io/pgx" +bug-reports: "https://github.com/arenadotio/pgx/issues" +depends: [ + "dune" {>= "1.11"} + "alcotest-async" {with-test & >= "1.0.0"} + "async_kernel" {>= "v0.13.0"} + "async_unix" {>= "v0.13.0"} + "async_ssl" + "base64" {with-test & >= "3.0.0"} + "conduit-async" + "ocaml" {>= "4.08"} + "pgx" {= version} + "pgx_value_core" {= version} +] +build: [ + ["dune" "subst"] {pinned} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@runtest" {with-test} + "@doc" {with-doc} + ] +] +dev-repo: "git+https://github.com/arenadotio/pgx.git" +x-commit-hash: "b73b09d8e376f0ba10219f9b860e33ea94281461" +url { + src: + "https://github.com/arenadotio/pgx/releases/download/2.0/pgx_lwt_mirage-2.0.tbz" + checksum: [ + "sha256=be6bac83e4030b6225f3966fd482b242818ff1147efc273163d4a9cd749b62bd" + "sha512=c18e3b7d246f184c5a689d081f613937d569f9b794b95e586c5c16ddb7402581049642dd20852ec95316c4681b70f5e8f494fc9475adecf64d53b13d70257c98" + ] +} diff --git a/packages/pgx_lwt/pgx_lwt.2.0/opam b/packages/pgx_lwt/pgx_lwt.2.0/opam new file mode 100644 index 00000000000..f3c15ed24ca --- /dev/null +++ b/packages/pgx_lwt/pgx_lwt.2.0/opam @@ -0,0 +1,40 @@ +opam-version: "2.0" +synopsis: "Pgx using Lwt for IO" +description: "Pgx using Lwt for IO" +maintainer: ["Arena Developers "] +authors: ["Arena Developers "] +license: "LGPL-2 with OCaml linking exception" +homepage: "https://github.com/arenadotio/pgx" +doc: "https://arenadotio.github.io/pgx" +bug-reports: "https://github.com/arenadotio/pgx/issues" +depends: [ + "dune" {>= "1.11"} + "lwt" + "logs" + "ocaml" {>= "4.08"} + "pgx" {= version} +] +build: [ + ["dune" "subst"] {pinned} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@runtest" {with-test} + "@doc" {with-doc} + ] +] +dev-repo: "git+https://github.com/arenadotio/pgx.git" +x-commit-hash: "b73b09d8e376f0ba10219f9b860e33ea94281461" +url { + src: + "https://github.com/arenadotio/pgx/releases/download/2.0/pgx_lwt_mirage-2.0.tbz" + checksum: [ + "sha256=be6bac83e4030b6225f3966fd482b242818ff1147efc273163d4a9cd749b62bd" + "sha512=c18e3b7d246f184c5a689d081f613937d569f9b794b95e586c5c16ddb7402581049642dd20852ec95316c4681b70f5e8f494fc9475adecf64d53b13d70257c98" + ] +} diff --git a/packages/pgx_lwt_mirage/pgx_lwt_mirage.2.0/opam b/packages/pgx_lwt_mirage/pgx_lwt_mirage.2.0/opam new file mode 100644 index 00000000000..344201529cc --- /dev/null +++ b/packages/pgx_lwt_mirage/pgx_lwt_mirage.2.0/opam @@ -0,0 +1,48 @@ +opam-version: "2.0" +synopsis: "Pgx using Lwt on Mirage for IO" +description: "Pgx using Lwt on Mirage for IO" +maintainer: ["Arena Developers "] +authors: ["Arena Developers "] +license: "LGPL-2 with OCaml linking exception" +homepage: "https://github.com/arenadotio/pgx" +doc: "https://arenadotio.github.io/pgx" +bug-reports: "https://github.com/arenadotio/pgx/issues" +depends: [ + "dune" {>= "1.11"} + "lwt" + "ocaml" {>= "4.08"} + "logs" + "mirage-channel" + "conduit-mirage" {>= "2.2.0" & < "2.3.0"} + "dns-client" + "mirage-random" + "mirage-time" + "mirage-clock" + "mirage-stack" + "pgx" {= version} + "pgx_lwt" {= version} +] +build: [ + ["dune" "subst"] {pinned} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@runtest" {with-test} + "@doc" {with-doc} + ] +] +dev-repo: "git+https://github.com/arenadotio/pgx.git" +x-commit-hash: "b73b09d8e376f0ba10219f9b860e33ea94281461" +url { + src: + "https://github.com/arenadotio/pgx/releases/download/2.0/pgx_lwt_mirage-2.0.tbz" + checksum: [ + "sha256=be6bac83e4030b6225f3966fd482b242818ff1147efc273163d4a9cd749b62bd" + "sha512=c18e3b7d246f184c5a689d081f613937d569f9b794b95e586c5c16ddb7402581049642dd20852ec95316c4681b70f5e8f494fc9475adecf64d53b13d70257c98" + ] +} diff --git a/packages/pgx_lwt_unix/pgx_lwt_unix.2.0/opam b/packages/pgx_lwt_unix/pgx_lwt_unix.2.0/opam new file mode 100644 index 00000000000..e57b4084891 --- /dev/null +++ b/packages/pgx_lwt_unix/pgx_lwt_unix.2.0/opam @@ -0,0 +1,41 @@ +opam-version: "2.0" +synopsis: "Pgx using Lwt and Unix libraries for IO" +description: "Pgx using Lwt and Unix libraries for IO" +maintainer: ["Arena Developers "] +authors: ["Arena Developers "] +license: "LGPL-2 with OCaml linking exception" +homepage: "https://github.com/arenadotio/pgx" +doc: "https://arenadotio.github.io/pgx" +bug-reports: "https://github.com/arenadotio/pgx/issues" +depends: [ + "dune" {>= "1.11"} + "alcotest-lwt" {with-test & >= "1.0.0"} + "base64" {with-test & >= "3.0.0"} + "ocaml" {>= "4.08"} + "pgx" {= version} + "pgx_lwt" {= version} +] +build: [ + ["dune" "subst"] {pinned} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@runtest" {with-test} + "@doc" {with-doc} + ] +] +dev-repo: "git+https://github.com/arenadotio/pgx.git" +x-commit-hash: "b73b09d8e376f0ba10219f9b860e33ea94281461" +url { + src: + "https://github.com/arenadotio/pgx/releases/download/2.0/pgx_lwt_mirage-2.0.tbz" + checksum: [ + "sha256=be6bac83e4030b6225f3966fd482b242818ff1147efc273163d4a9cd749b62bd" + "sha512=c18e3b7d246f184c5a689d081f613937d569f9b794b95e586c5c16ddb7402581049642dd20852ec95316c4681b70f5e8f494fc9475adecf64d53b13d70257c98" + ] +} diff --git a/packages/pgx_unix/pgx_unix.2.0/opam b/packages/pgx_unix/pgx_unix.2.0/opam new file mode 100644 index 00000000000..20c9c74c415 --- /dev/null +++ b/packages/pgx_unix/pgx_unix.2.0/opam @@ -0,0 +1,41 @@ +opam-version: "2.0" +synopsis: "PGX using the standard library's Unix module for IO (synchronous)" +description: + "PGX using the standard library's Unix module for IO (synchronous)" +maintainer: ["Arena Developers "] +authors: ["Arena Developers "] +license: "LGPL-2 with OCaml linking exception" +homepage: "https://github.com/arenadotio/pgx" +doc: "https://arenadotio.github.io/pgx" +bug-reports: "https://github.com/arenadotio/pgx/issues" +depends: [ + "dune" {>= "1.11"} + "alcotest" {with-test & >= "1.0.0"} + "base64" {with-test & >= "3.0.0"} + "ocaml" {>= "4.08"} + "pgx" {= version} +] +build: [ + ["dune" "subst"] {pinned} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@runtest" {with-test} + "@doc" {with-doc} + ] +] +dev-repo: "git+https://github.com/arenadotio/pgx.git" +x-commit-hash: "b73b09d8e376f0ba10219f9b860e33ea94281461" +url { + src: + "https://github.com/arenadotio/pgx/releases/download/2.0/pgx_lwt_mirage-2.0.tbz" + checksum: [ + "sha256=be6bac83e4030b6225f3966fd482b242818ff1147efc273163d4a9cd749b62bd" + "sha512=c18e3b7d246f184c5a689d081f613937d569f9b794b95e586c5c16ddb7402581049642dd20852ec95316c4681b70f5e8f494fc9475adecf64d53b13d70257c98" + ] +} diff --git a/packages/pgx_value_core/pgx_value_core.2.0/opam b/packages/pgx_value_core/pgx_value_core.2.0/opam new file mode 100644 index 00000000000..6657378761c --- /dev/null +++ b/packages/pgx_value_core/pgx_value_core.2.0/opam @@ -0,0 +1,40 @@ +opam-version: "2.0" +synopsis: "Pgx_value converters for Core types like Date and Time" +description: "Pgx_value converters for Core types like Date and Time" +maintainer: ["Arena Developers "] +authors: ["Arena Developers "] +license: "LGPL-2 with OCaml linking exception" +homepage: "https://github.com/arenadotio/pgx" +doc: "https://arenadotio.github.io/pgx" +bug-reports: "https://github.com/arenadotio/pgx/issues" +depends: [ + "dune" {>= "1.11"} + "alcotest" {with-test & >= "1.0.0"} + "core_kernel" {>= "v0.13.0"} + "ocaml" {>= "4.08"} + "pgx" {= version} +] +build: [ + ["dune" "subst"] {pinned} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@runtest" {with-test} + "@doc" {with-doc} + ] +] +dev-repo: "git+https://github.com/arenadotio/pgx.git" +x-commit-hash: "b73b09d8e376f0ba10219f9b860e33ea94281461" +url { + src: + "https://github.com/arenadotio/pgx/releases/download/2.0/pgx_lwt_mirage-2.0.tbz" + checksum: [ + "sha256=be6bac83e4030b6225f3966fd482b242818ff1147efc273163d4a9cd749b62bd" + "sha512=c18e3b7d246f184c5a689d081f613937d569f9b794b95e586c5c16ddb7402581049642dd20852ec95316c4681b70f5e8f494fc9475adecf64d53b13d70257c98" + ] +}