package pgx_async
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Pgx using Async for IO
Install
dune-project
Dependency
github.com
Readme
Changelog
LGPL-2.0-only WITH OCaml-LGPL-linking-exception License
Edit opam file
Versions (5)
Authors
Maintainers
Sources
pgx-2.1.tbz
sha256=3c53140b3b7082835927604f2511c77329406edcea5f378fed60f9fe9cb7da5d
sha512=cc95e07625c195675f01700e31906488bbe40f3db887b2564c9d19f250900b165174ba595acdb35adb5f7db6bcaf5f9fb1d784efd1c5f7d5202d61641ac55a12
doc/CHANGES.html
2.1 (unreleased)
Breaking changes
- Missing SASL authentication impl provides an error instead of hanging (https://github.com/arenadotio/pgx/pull/122).
- pgx_lwt_mirage now requires conduit 2.3 instead of 2.2 (https://github.com/arenadotio/pgx/pull/117).
2.0 (2021-05-12)
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 thatPgx_valuenow needs to be accessed asPgx.Value. (https://github.com/arenadotio/pgx/pull/103) Pgx_async.connectandwith_connnow have an additional optional?sslargument (see below).
Added
- Pgx_async now supports TLS connections using Conduit_async. This is enabled by default and can be controlled with the new
?sslargument toconnectandwith_conn. (https://github.com/arenadotio/pgx/pull/108)
Fixed
- Improved message for authentication errors. Previously these raised
Pgx_eof, and now they raisePostgreSQL_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).
1.0 (2020-05-08)
Breaking changes
- Pgx_value.t is an opaque type now. Use
Pgx_value.of/toconverters. Note that these converters are not equivalent to the OCaml functions likebool_of_stringorfloat_of_string, and that for bytea data, you need to usePgx_value.of/to_binary, notPgx_value.of/to_string. - Pgx_lwt has been renamed Pgx_lwt_unix.
Pgx.executenow uses the unnamed prepare statement. In most cases this should not affect anything, but if you were relying on Pgx not internally using the unnamed prepared statement, you will need to fix your code. If you run into this, the fix is to usePgx.with_preparedand name your prepared statement.Pgx_value.of_inet/to_inetnow useIpaddr.tfrom theipaddrlibrary instead ofUnix.inet_addr.
Added
Pgx_value.of_binaryandPgx_value.to_binaryadded for bytea data.- Add
execute_maphelper to Pgx - Add
execute_pipehelper to Pgx_async - Add
execute_unithelper to Pgx - Break out
Pgx_value_corelibrary, which will allow users of Pgx_unix and Pgx_lwt to use theCore_kernel.TimandDatetypes. This is still included by default in Pgx_async. - Added Pgx_lwt_mirage
- Pgx_value types now all implement
compareandsexp_of
Fixed
- Pgx no longer assumes all strings are binary data. Strings must be valid varchar data in the database's encoding. Use
Pgx_value.of/to_binarywith bytea columns if you want binary. - Use a tail-recursive
List.mapimplementation - Use
Unix.getuid+Lwt_unix.getpwuidinstead ofLwt.getloginfor the default username, sincegetloginfails in some cases. - Use int64 to keep track of prepared statements just in case someone prepares several million statements in one program
Changed
- Re-raise exceptions with backtraces if possible.
- Pgx_async uses Async.Log for logging instead of printing directly to stderr
- Use Sexplib0 instead of Sexplib
- Use the Query protocol for parameterless
executeinstead of Prepare + Bind - Use the unnamed prepared statement for
execute - Use
ipaddrlibrary instead ofUnix.inet_addr - Split Pgx_lwt into Pgx_lwt_unix and Pgx_lwt_mirage
0.1 (2018-05-31)
Initial release since fork from PG'OCaml.
- More tests
- More consistent use of async API's
- Addition of Pgx.Value for hopefully easier conversion to and from DB types
- Safe handling of concurrent queries (not any faster, but they won't crash)
- Improved interface for prepared statements to make it harder to execute non-existent ones
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page