All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
*
Chrono 0.3 -> 0.4.
+
OID 1184 (timestamptz) is now converted into a number of seconds since UNIX epoch.
!
Prevent an integer overflow from overflowing the statement_timeout.
!
Avoid a situation when too small a timeout prevents us from removing it.
+
The database error messages are now prefixed with the SQLSTATE code.
+
Database-level timeouts are implemented (using "SET statement_timeout")!
+
Unit tests now have the ability to emulate server errors.
!
Fixed a panic happening during a database restart.
*
Serde 0.8 -> 1.0.
+
PgOperation
now has a callback which can be used to check on the escaped SQL.
+
The OID 705 (returned for SELECT 'foo') is now treated as an UTF-8 string in the JSON deserialization code.
!
Ignore the wake-up pipe overflows.
*
Serde 0.8 -> 0.9.
*
InlinableString -> InlLiteral.
+
PgRow::col_deserialize
unpacks a single column value.
+
Support deserializing u8 "char" type (oid 18).
!
Fixed to use the PQresetStart
instead of the blocking PQreset
.
+
Support InlinableString literals in order not to heap so much.
+
Serializing individual columns with PgRow::col_json
.
+
JSON serialization now supports PostgreSQL "boolean".
+
Implemented PgResult::deserialize
, conveniently unpack query results into a Serde struct.
+
Simplify the client side of fn execute
error handling by lifting the errors into the future.
+
JSON serialization for a single row.
+
Automatically reconnect after an "SSL SYSCALL error".
+
In PgResult::to_json
unpack the json and jsonb PostgreSQL types.
+
Operations can now be pinned to a particular connection.
+
A way to escape binary data was added (Bytea).
+
Experimental reconnection support.
+
SQLSTATE error code is copied to PgSqlErr
errors.
+
JSON conversion supports enums by stringifying any ASCII user types.
+
Patreon badge. In case you want to thank me or help me stay afloat and develop this driver.
+
Print the error details when the pipeline SQL fails.
+
Method PgResult::fname
to get the name of a column.
+
Method PgRow::num
to get the number of a row.
+
Errors related to JSON conversions can now be encoded in PgFutureErr
.
+
PgResult::to_json
converts the query results into a JSON structure.