Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[new release] pgx_lwt_mirage, pgx_value_core, pgx_async, pgx_unix, pgx_lwt_unix, pgx_lwt and pgx (2.0) #18675

Merged
merged 4 commits into from
May 14, 2021

Conversation

brendanlong
Copy link
Contributor

Pgx using Lwt on Mirage for IO

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.
    (Set Pgx module to wrapped arenadotio/pgx#103)
  • Pgx_async.connect and with_conn now have an additional optional ?ssl argument (see below).

Added

Fixed

Changed

brendanlong and others added 4 commits May 12, 2021 09:07
…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).
@kit-ty-kate kit-ty-kate merged commit 5c12fff into ocaml:master May 14, 2021
@kit-ty-kate
Copy link
Member

Thanks! Could you return the fixes to the opam files upstream?

@brendanlong brendanlong deleted the release-pgx-2.0 branch May 17, 2021 15:12
@brendanlong
Copy link
Contributor Author

Thanks! Could you return the fixes to the opam files upstream?

I added most of these fixes to arenadotio/pgx#113

For our license, I think the fix incorrectly assumed we're using LGPLv2.1 but we're stuck on LGPLv2.0 (since we have to match PG'OCaml: https://github.com/darioteixeira/pgocaml/blob/master/LICENSE.txt).

For the pinned/dev thing, I think that section is generated by dune so I'm not sure how to fix it. Do we need a newer version of dune or something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants