Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
v1.6.0 - 2021-06-10
Set the time zone of PostgreSQL connections to UTC to mitigate an undesirable implicit conversion to the local time zone for timestamp. This issue was exposed by the specification of field types introduced in version 1.4.0. Earlier versions worked as expected, if only accidentally, since the time zone is ignored when a string is converted to a timestamp. While this change makes timestamp more usable again for storing UTC time stamps, I strongly recommend using timestamp with time zone since it's interpretation is unambiguous. The API reference is now updated with details about how the ptime OCaml type is mapped for different database systems.
Drop specification of OCaml string as SQL text for PostgreSQL. This is due to issues with implicit conversions and function overloading when the desired type on the SQL side is char, varchar, or jsonb.
Add Caqti_type.redact to protect sensitive information from being logged.
Only log parameters if $CAQTI_DEBUG_PARAM is set to "true".
When logging requests, show underlying values for custom types.
Reject multi-row response in find_opt implementation for sqlite3.
Tolerate Lwt promise rejections in Pool.use.
v1.5.1 - 2021-04-18
Fix option recognition in PostgreSQL driver (GPR#67 mefyl).
Fix option recognition in MariaDB driver and add test (Petter A. Urkedal).
v1.5.0 - 2021-04-11
Request the full UTF-8 character for the MariaDB connection.
Support int16 and enum types for parameters and rows.
v1.4.0 - 2021-03-11
Fix infinite loop when deserializing an optional tuple (GPR#63 mefyl).
Add Caqti_connect_sig.S.with_connection (GPR#61 Anton Bachin).
Pass parameter types to PostgreSQL prepare and query functions. This avoids the need to CAST parameters on the SQL side in some cases.
Add ?post_connect callback to connect_pool.
Documentation fixes and improvements (Aaron L. Zeng, Anton Bachin, Petter A. Urkedal).
v1.3.0 - 2021-01-17
Implement affected_count for sqlite backend (GPR#46 jakob).
Add method exec_with_affected_count to Caqti_connection_sig.S (GPR#45 jakob).
Add ?max_idle_size to pool creation functions.
Dropped dependency on ppx_deriving due to issue with static compilation (GPR#50 Ulrik Strid).
Pass through $<var>$ in query strings and deprecate $$.
Log statements to be executed at debug level.
Add COPYING.OCAML and fix license expression in opam files.
Misc improvements to tests and documentation (GPR#51 Philippe Wang, GPR#54 Reynir Björnsson, etc.).
v1.2.4 - 2020-06-07
Switch to TEXT format for PostgreSQL populate implementation.
v1.2.3 - 2020-06-02
Silence PostgreSQL notifications which were printed to stderr. They can be re-enabled with a parameter on the connection URI (#33).
Improve details in exceptions in two places.
Fix info about connection caching for sqlite in README (#35, dgllghr).
v1.2.2 - 2019-12-19
Update for core v0.13 (GPR#31 Xavier Clerc).
v1.2.1 - 2019-12-08
Support TEXT literals in queries.
Fix decoding of binary results for PostgreSQL (thanks to James Owen).
Implement copy-mode for PostgreSQL (GPR#30 James Owen).
v1.2.0 - 2019-10-02
Add a signature for the populate function, and add basic implementations for all drivers (GPR#28).
Add stream for result extraction (GPR#22 Nathan Rebours).
Use the postgres driver when postgres is specified as the URL scheme (GPR#25 James Owen).