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

Set Pgx module to wrapped #103

Merged
merged 1 commit into from
Jun 23, 2020
Merged

Set Pgx module to wrapped #103

merged 1 commit into from
Jun 23, 2020

Conversation

brendanlong
Copy link
Contributor

This makes us only expose the Pgx module at top-level.

Most of this stuff was never intended to be used directly, so the only
major change is that Pgx_value now must be referenced as Pgx.Value.

Fixes #101

@brendanlong brendanlong self-assigned this Jun 23, 2020
@brendanlong brendanlong added this to the 2.0 milestone Jun 23, 2020
@brendanlong brendanlong requested a review from anuragsoni June 23, 2020 16:38
@@ -10,7 +10,6 @@ let () = Jbuild_plugin.V1.send @@ {|

(library
(public_name pgx)
(wrapped false)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should probably remove the wrapped from pgx_async as well. I think we currentl expose Pgx_async_test in the public api but that's really only needed for tests. We could perhaps use core_kernel's module that indicates something is supposed to be for test only?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I was considering just dropping Pgx_async_test entirely or moving it somewhere else. It doesn't belong in the public API at all.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #104

This makes us only expose the Pgx module at top-level.

Most of this stuff was never intended to be used directly, so the only
major change is that Pgx_value now _must_ be referenced as Pgx.Value.

Fixes #101
@coveralls
Copy link

Coverage Status

Coverage remained the same at 66.848% when pulling 7fd117c on wrap-pgx into e3d789e on master.

@brendanlong brendanlong merged commit e408363 into master Jun 23, 2020
@brendanlong brendanlong deleted the wrap-pgx branch June 23, 2020 18:09
brendanlong added a commit to brendanlong/opam-repository that referenced this pull request May 12, 2021
…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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Module name clash
4 participants