Skip to content

Commit

Permalink
[new release] pgx_lwt_mirage, pgx_value_core, pgx_async, pgx_unix, pg…
Browse files Browse the repository at this point in the history
…x_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`.
  (arenadotio/pgx#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`.
  (arenadotio/pgx#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 ...)`.
  (arenadotio/pgx#105)

### Changed

* Support new Mirage-conduit timeout argument (arenadotio/pgx#95).
  • Loading branch information
brendanlong committed May 12, 2021
1 parent b1e6a53 commit a43199a
Show file tree
Hide file tree
Showing 7 changed files with 304 additions and 0 deletions.
49 changes: 49 additions & 0 deletions packages/pgx/pgx.2.0/opam
Original file line number Diff line number Diff line change
@@ -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 <silver-snakes@arena.io>"]
authors: ["Arena Developers <silver-snakes@arena.io>"]
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"
]
}
45 changes: 45 additions & 0 deletions packages/pgx_async/pgx_async.2.0/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
opam-version: "2.0"
synopsis: "Pgx using Async for IO"
description: "Pgx using Async for IO"
maintainer: ["Arena Developers <silver-snakes@arena.io>"]
authors: ["Arena Developers <silver-snakes@arena.io>"]
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"
]
}
40 changes: 40 additions & 0 deletions packages/pgx_lwt/pgx_lwt.2.0/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
opam-version: "2.0"
synopsis: "Pgx using Lwt for IO"
description: "Pgx using Lwt for IO"
maintainer: ["Arena Developers <silver-snakes@arena.io>"]
authors: ["Arena Developers <silver-snakes@arena.io>"]
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"
]
}
48 changes: 48 additions & 0 deletions packages/pgx_lwt_mirage/pgx_lwt_mirage.2.0/opam
Original file line number Diff line number Diff line change
@@ -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 <silver-snakes@arena.io>"]
authors: ["Arena Developers <silver-snakes@arena.io>"]
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"
]
}
41 changes: 41 additions & 0 deletions packages/pgx_lwt_unix/pgx_lwt_unix.2.0/opam
Original file line number Diff line number Diff line change
@@ -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 <silver-snakes@arena.io>"]
authors: ["Arena Developers <silver-snakes@arena.io>"]
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"
]
}
41 changes: 41 additions & 0 deletions packages/pgx_unix/pgx_unix.2.0/opam
Original file line number Diff line number Diff line change
@@ -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 <silver-snakes@arena.io>"]
authors: ["Arena Developers <silver-snakes@arena.io>"]
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"
]
}
40 changes: 40 additions & 0 deletions packages/pgx_value_core/pgx_value_core.2.0/opam
Original file line number Diff line number Diff line change
@@ -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 <silver-snakes@arena.io>"]
authors: ["Arena Developers <silver-snakes@arena.io>"]
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"
]
}

0 comments on commit a43199a

Please sign in to comment.