4.3 KiB
4.3 KiB
Change Log
v0.5.1 - 2019-12-25
Fixed
- Removed some stray
println!s fromcopy_outinternals.
v0.5.0 - 2019-12-23
Changed
Client::copy_innow returns aSinkrather than taking in aStream.CopyStreamhas been renamed toCopyOutStream.Client::copy_inandClient::copy_outno longer take query parameters as PostgreSQL doesn't support parameters in COPY queries.TargetSessionAttrs,SslMode, andChannelBindingare now true non-exhaustive enums.
Added
- Added
Client::query_optfor queries expected to return zero or one rows. - Added binary copy format support to the
binary_copymodule. - Added back query logging.
Removed
- Removed
uuid0.7 support.
v0.5.0-alpha.2 - 2019-11-27
Changed
- Upgraded
bytesto 0.5. - Upgraded
tokioto 0.2. - The TLS interface uses a trait to obtain channel binding information rather than returning it after the handshake.
- Changed the value of the
timezoneproperty fromGMTtoUTC. - Returned
Streamimplementations are now!Unpin.
Added
- Added support for
uuid0.8. - Added the column to
Row::try_geterrors.
v0.5.0-alpha.1 - 2019-10-14
Changed
- The library now uses
std::futures::Futureand async/await syntax. - Most methods now take
&selfrather than&mut self. - The transaction API has changed to more closely resemble the synchronous API and is significantly more ergonomic.
- Methods now take
&[&(dyn ToSql + Sync)]rather than&[&dyn ToSql]to allow futures to beSend. - Methods are now "normal" async functions that no longer do work up-front.
- Statements are no longer required to be prepared explicitly before use. Methods taking
&Statementcan now also take&str, and will internally prepare the statement. ToSqlnow serializes its value into aBytesMutrather thanVec<u8>.- Methods that previously returned
Streams now returnVec<T>. New*_rawmethods still provide aStreaminterface.
Added
- Added the
channel_binding=disable/allow/requireconfiguration to control use of channel binding. - Added the
Client::query_onemethod to cover the common case of a query that returns exactly one row.
v0.4.0-rc.3 - 2019-06-29
Fixed
- Significantly improved the performance of
queryandcopy_in.
Changed
- The items of the stream passed to
copy_inmust be'static.
v0.4.0-rc.2 - 2019-03-05
Fixed
- Fixed Cargo features to actually enable the functionality they claim to.
v0.4.0-rc.1 - 2019-03-05
Changed
- The client API has been significantly overhauled. It now resembles
hyper's, with separateConnectionandClientobjects. See the crate-level documentation for more details. - The TLS connection mode (e.g.
prefer) is now part of the connection configuration rather than being passed in separately. - The Cargo features enabling
ToSqlandFromSqlimplementations for external crates are now versioned. For example,with-uuidis nowwith-uuid-0_7. This enables us to add support for new major versions of the crates in parallel without breaking backwards compatibility. - Upgraded from
tokio-coretotokio.
Added
- Connection string configuration now more fully mirrors libpq's syntax, and supports both URL-style and key-value style strings.
FromSqlimplementations can now borrow from the data buffer. In particular, this means that you can deserialize values as&str. TheFromSqlOwnedtrait can be used as a bound to restrict code to deserializing owned values.- Added support for channel binding with SCRAM authentication.
- Added multi-host support in connection configuration.
- The client now supports query pipelining, which can be used as a latency hiding measure.
- While the crate uses
tokioby default, the base API can be used with any asynchronous stream type on any reactor. - Added support for simple query requests returning row data.
Removed
- The
with-opensslfeature has been removed. Use thetokio-postgres-opensslcrate instead. - The
with-rustc_serializeandwith-timefeatures have been removed. UseserdeandSystemTimeorchronoinstead.
Older
Look at the release tags for information about older releases.