-
Notifications
You must be signed in to change notification settings - Fork 16
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
Conversation
@@ -10,7 +10,6 @@ let () = Jbuild_plugin.V1.send @@ {| | |||
|
|||
(library | |||
(public_name pgx) | |||
(wrapped false) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
…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).
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