package pgx_lwt_mirage
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=be6bac83e4030b6225f3966fd482b242818ff1147efc273163d4a9cd749b62bd
sha512=c18e3b7d246f184c5a689d081f613937d569f9b794b95e586c5c16ddb7402581049642dd20852ec95316c4681b70f5e8f494fc9475adecf64d53b13d70257c98
CHANGES.md.html
1.0 (2020-05-08)
Breaking changes
Pgx_value.t is an opaque type now. Use
Pgx_value.of/to
converters. Note that these converters are not equivalent to the OCaml functions likebool_of_string
orfloat_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.execute
now 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_prepared
and name your prepared statement.Pgx_value.of_inet
/to_inet
now useIpaddr.t
from theipaddr
library instead ofUnix.inet_addr
.
Added
Pgx_value.of_binary
andPgx_value.to_binary
added for bytea data.Add
execute_map
helper to PgxAdd
execute_pipe
helper to Pgx_asyncAdd
execute_unit
helper to PgxBreak out
Pgx_value_core
library, which will allow users of Pgx_unix and Pgx_lwt to use theCore_kernel.Tim
andDate
types. This is still included by default in Pgx_async.Added Pgx_lwt_mirage
Pgx_value types now all implement
compare
andsexp_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_binary
with bytea columns if you want binary.Use a tail-recursive
List.map
implementationUse
Unix.getuid
+Lwt_unix.getpwuid
instead ofLwt.getlogin
for the default username, sincegetlogin
fails 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
execute
instead of Prepare + BindUse the unnamed prepared statement for
execute
Use
ipaddr
library 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