ToSql
and FromSql
implementations for [u8; N]
via the array-impls
feature.smol_str
0.1 via the with-smol_str-01
feature.ToSql::encode_format
to support text encodings of parameters.uuid
1.0 via the with-uuid-1
feature.tokio-util
0.7.parking_lot
0.12.Client::transaction
future was dropped before completion.SimpleQueryRow::columns
.eui48
1.0 via the with-eui48-1
feature.FromSql
and ToSql
implementations for arrays via the array-impls
feature.time
0.3 via the with-time-0_3
feature.SqlState
constants can now be used in match
patterns.geo-types
0.7 via with-geo-types-0_7
feature.Client::clear_type_cache
.Error::as_db_error
and Error::is_closed
.tokio
1.0.postgres-types
0.2.ToSql
values can now take both &dyn ToSql
and T: ToSql
values.tokio
0.3.DbError
's Display
implementation.geo-types
0.6.Transaction::savepoint
, which can be used to create a savepoint with a custom name.Debug
implementations for Client
, Row
, and Column
.time
0.2 support.Connection::poll_message
.Client::cancel_query
and Client::cancel_query_raw
in favor of Client::cancel_token
.Client::build_transaction
to allow configuration of various transaction options.Client::cancel_token
, which returns a separate owned object that can be used to cancel queries.Config
fields.GenericClient
trait implemented for Client
and Transaction
and covering shared functionality.println!
s from copy_out
internals.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.Client::query_opt
for queries expected to return zero or one rows.binary_copy
module.uuid
0.7 support.bytes
to 0.5.tokio
to 0.2.timezone
property from GMT
to UTC
.Stream
implementations are now !Unpin
.uuid
0.8.Row::try_get
errors.std::futures::Future
and async/await syntax.&self
rather than &mut self
.&[&(dyn ToSql + Sync)]
rather than &[&dyn ToSql]
to allow futures to be Send
.&Statement
can now also take &str
, and will internally prepare the statement.ToSql
now serializes its value into a BytesMut
rather than Vec<u8>
.Stream
s now return Vec<T>
. New *_raw
methods still provide a Stream
interface.channel_binding=disable/allow/require
configuration to control use of channel binding.Client::query_one
method to cover the common case of a query that returns exactly one row.query
and copy_in
.copy_in
must be 'static
.hyper
's, with separate Connection
and Client
objects. See the crate-level documentation for more details.prefer
) is now part of the connection configuration rather than being passed in separately.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.tokio-core
to tokio
.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.tokio
by default, the base API can be used with any asynchronous stream type on any reactor.with-openssl
feature has been removed. Use the tokio-postgres-openssl
crate instead.with-rustc_serialize
and with-time
features have been removed. Use serde
and SystemTime
or chrono
instead.Look at the release tags for information about older releases.