2019-03-06 03:03:36 +00:00
|
|
|
# Change Log
|
|
|
|
|
2021-10-19 23:58:49 +00:00
|
|
|
## v0.7.4 - 2021-10-19
|
|
|
|
|
|
|
|
### Fixed
|
|
|
|
|
|
|
|
* Fixed reporting of commit-time errors triggered by deferred constraints.
|
|
|
|
|
2021-09-29 23:38:29 +00:00
|
|
|
## v0.7.3 - 2021-09-29
|
2021-09-29 23:34:32 +00:00
|
|
|
|
|
|
|
### Fixed
|
|
|
|
|
|
|
|
* Fixed a deadlock when pipelined requests concurrently prepare cached typeinfo queries.
|
|
|
|
|
|
|
|
### Added
|
|
|
|
|
|
|
|
* Added `SimpleQueryRow::columns`.
|
|
|
|
* Added support for `eui48` 1.0 via the `with-eui48-1` feature.
|
|
|
|
* Added `FromSql` and `ToSql` implementations for arrays via the `array-impls` feature.
|
|
|
|
* Added support for `time` 0.3 via the `with-time-0_3` feature.
|
|
|
|
|
2021-04-25 14:52:25 +00:00
|
|
|
## v0.7.2 - 2021-04-25
|
|
|
|
|
|
|
|
### Fixed
|
|
|
|
|
|
|
|
* `SqlState` constants can now be used in `match` patterns.
|
|
|
|
|
|
|
|
## v0.7.1 - 2021-04-03
|
2021-01-14 03:34:45 +00:00
|
|
|
|
|
|
|
### Added
|
|
|
|
|
|
|
|
* Added support for `geo-types` 0.7 via `with-geo-types-0_7` feature.
|
2021-04-03 21:12:50 +00:00
|
|
|
* Added `Client::clear_type_cache`.
|
|
|
|
* Added `Error::as_db_error` and `Error::is_closed`.
|
2021-01-14 03:34:45 +00:00
|
|
|
|
2020-12-25 14:08:20 +00:00
|
|
|
## v0.7.0 - 2020-12-25
|
|
|
|
|
|
|
|
### Changed
|
|
|
|
|
|
|
|
* Upgraded to `tokio` 1.0.
|
|
|
|
* Upgraded to `postgres-types` 0.2.
|
|
|
|
|
|
|
|
### Added
|
|
|
|
|
|
|
|
* Methods taking iterators of `ToSql` values can now take both `&dyn ToSql` and `T: ToSql` values.
|
|
|
|
|
2020-10-17 19:05:09 +00:00
|
|
|
## v0.6.0 - 2020-10-17
|
|
|
|
|
|
|
|
### Changed
|
|
|
|
|
2020-12-25 14:08:20 +00:00
|
|
|
* Upgraded to `tokio` 0.3.
|
2020-10-17 19:05:09 +00:00
|
|
|
* Added the detail and hint fields to `DbError`'s `Display` implementation.
|
|
|
|
|
2020-07-03 19:19:15 +00:00
|
|
|
## v0.5.5 - 2020-07-03
|
|
|
|
|
|
|
|
### Added
|
|
|
|
|
|
|
|
* Added support for `geo-types` 0.6.
|
|
|
|
|
|
|
|
## v0.5.4 - 2020-05-01
|
2020-05-01 23:10:41 +00:00
|
|
|
|
|
|
|
### Added
|
|
|
|
|
|
|
|
* Added `Transaction::savepoint`, which can be used to create a savepoint with a custom name.
|
|
|
|
|
2020-03-06 01:11:46 +00:00
|
|
|
## v0.5.3 - 2020-03-05
|
|
|
|
|
|
|
|
### Added
|
|
|
|
|
|
|
|
* Added `Debug` implementations for `Client`, `Row`, and `Column`.
|
|
|
|
* Added `time` 0.2 support.
|
|
|
|
|
2020-02-01 02:00:05 +00:00
|
|
|
## v0.5.2 - 2020-01-31
|
|
|
|
|
|
|
|
### Fixed
|
|
|
|
|
|
|
|
* Notice messages sent during the initial connection process are now collected and returned first from
|
|
|
|
`Connection::poll_message`.
|
|
|
|
|
|
|
|
### Deprecated
|
|
|
|
|
|
|
|
* Deprecated `Client::cancel_query` and `Client::cancel_query_raw` in favor of `Client::cancel_token`.
|
|
|
|
|
|
|
|
### Added
|
|
|
|
|
|
|
|
* Added `Client::build_transaction` to allow configuration of various transaction options.
|
|
|
|
* Added `Client::cancel_token`, which returns a separate owned object that can be used to cancel queries.
|
2020-02-01 02:04:47 +00:00
|
|
|
* Added accessors for `Config` fields.
|
2020-02-01 02:00:05 +00:00
|
|
|
* Added a `GenericClient` trait implemented for `Client` and `Transaction` and covering shared functionality.
|
|
|
|
|
2019-12-25 16:19:04 +00:00
|
|
|
## v0.5.1 - 2019-12-25
|
|
|
|
|
|
|
|
### Fixed
|
|
|
|
|
|
|
|
* Removed some stray `println!`s from `copy_out` internals.
|
|
|
|
|
2019-12-23 23:40:49 +00:00
|
|
|
## v0.5.0 - 2019-12-23
|
|
|
|
|
|
|
|
### Changed
|
|
|
|
|
|
|
|
* `Client::copy_in` now returns a `Sink` rather than taking in a `Stream`.
|
|
|
|
* `CopyStream` has been renamed to `CopyOutStream`.
|
|
|
|
* `Client::copy_in` and `Client::copy_out` no longer take query parameters as PostgreSQL doesn't support parameters in
|
|
|
|
COPY queries.
|
|
|
|
* `TargetSessionAttrs`, `SslMode`, and `ChannelBinding` are now true non-exhaustive enums.
|
|
|
|
|
|
|
|
### Added
|
|
|
|
|
|
|
|
* Added `Client::query_opt` for queries expected to return zero or one rows.
|
|
|
|
* Added binary copy format support to the `binary_copy` module.
|
|
|
|
* Added back query logging.
|
|
|
|
|
|
|
|
### Removed
|
|
|
|
|
|
|
|
* Removed `uuid` 0.7 support.
|
|
|
|
|
2019-11-28 01:48:01 +00:00
|
|
|
## v0.5.0-alpha.2 - 2019-11-27
|
|
|
|
|
|
|
|
### Changed
|
|
|
|
|
|
|
|
* Upgraded `bytes` to 0.5.
|
|
|
|
* Upgraded `tokio` to 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 `timezone` property from `GMT` to `UTC`.
|
|
|
|
* Returned `Stream` implementations are now `!Unpin`.
|
2019-10-19 17:37:28 +00:00
|
|
|
|
|
|
|
### Added
|
2019-11-28 01:48:01 +00:00
|
|
|
|
|
|
|
* Added support for `uuid` 0.8.
|
|
|
|
* Added the column to `Row::try_get` errors.
|
2019-10-19 17:37:28 +00:00
|
|
|
|
2019-10-15 01:14:11 +00:00
|
|
|
## v0.5.0-alpha.1 - 2019-10-14
|
|
|
|
|
|
|
|
### Changed
|
|
|
|
|
|
|
|
* The library now uses `std::futures::Future` and async/await syntax.
|
|
|
|
* Most methods now take `&self` rather 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 be `Send`.
|
|
|
|
* 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 `&Statement` can now also take
|
|
|
|
`&str`, and will internally prepare the statement.
|
|
|
|
* `ToSql` now serializes its value into a `BytesMut` rather than `Vec<u8>`.
|
|
|
|
* Methods that previously returned `Stream`s now return `Vec<T>`. New `*_raw` methods still provide a `Stream`
|
|
|
|
interface.
|
|
|
|
|
|
|
|
### Added
|
|
|
|
|
|
|
|
* Added the `channel_binding=disable/allow/require` configuration to control use of channel binding.
|
|
|
|
* Added the `Client::query_one` method to cover the common case of a query that returns exactly one row.
|
|
|
|
|
2019-06-30 04:43:50 +00:00
|
|
|
## v0.4.0-rc.3 - 2019-06-29
|
2019-06-30 04:18:28 +00:00
|
|
|
|
|
|
|
### Fixed
|
|
|
|
|
|
|
|
* Significantly improved the performance of `query` and `copy_in`.
|
|
|
|
|
|
|
|
### Changed
|
|
|
|
|
|
|
|
* The items of the stream passed to `copy_in` must be `'static`.
|
|
|
|
|
2019-06-30 04:43:50 +00:00
|
|
|
## v0.4.0-rc.2 - 2019-03-05
|
2019-03-06 05:49:41 +00:00
|
|
|
|
|
|
|
### Fixed
|
|
|
|
|
|
|
|
* Fixed Cargo features to actually enable the functionality they claim to.
|
|
|
|
|
2019-06-30 04:43:50 +00:00
|
|
|
## v0.4.0-rc.1 - 2019-03-05
|
2019-03-06 03:03:36 +00:00
|
|
|
|
|
|
|
### Changed
|
|
|
|
|
|
|
|
* The client API has been significantly overhauled. It now resembles `hyper`'s, with separate `Connection` and `Client`
|
|
|
|
objects. 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 `ToSql` and `FromSql` implementations for external crates are now versioned. For example,
|
|
|
|
`with-uuid` is now `with-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-core` to `tokio`.
|
|
|
|
|
|
|
|
### Added
|
|
|
|
|
2019-04-07 03:59:01 +00:00
|
|
|
* Connection string configuration now more fully mirrors libpq's syntax, and supports both URL-style and key-value style
|
|
|
|
strings.
|
2019-03-06 03:03:36 +00:00
|
|
|
* `FromSql` implementations can now borrow from the data buffer. In particular, this means that you can deserialize
|
|
|
|
values as `&str`. The `FromSqlOwned` trait 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 `tokio` by 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-openssl` feature has been removed. Use the `tokio-postgres-openssl` crate instead.
|
|
|
|
* The `with-rustc_serialize` and `with-time` features have been removed. Use `serde` and `SystemTime` or `chrono`
|
|
|
|
instead.
|
|
|
|
|
|
|
|
## Older
|
|
|
|
|
|
|
|
Look at the [release tags] for information about older releases.
|
|
|
|
|
|
|
|
[release tags]: https://github.com/sfackler/rust-postgres/releases
|