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.
- Add WASM support
- Expose API for providing a custom
Connect
implementation.
0.13.1 - 2024-05-04
- Update
deadpool
dependency to version0.12
- Add
LICENSE-APACHE
andLICENSE-MIT
files to published crates
0.13.0 - 2024-04-01
- Update
deadpool
dependency to version0.11
- Remove
async_trait
dependency - Bump up MSRV to
1.75
0.12.1 - 2023-12-18
- Fix
Config::url
handling
0.12.0 - 2023-12-15
- Add
load_balance_hosts
toConfig
struct. - Add
hostaddr
andhostaddrs
toConfig
struct. - Add
url
field toConfig
struct. This enables parsing of connection URLs.
0.11.0 - 2023-09-26
- BREAKING: Disconnect immediately from the database when dropping
clients. This is considered a breaking change as in previous versions
the connections would stick around until all queued queries were
processed. This was considered a potential leak of resources. The
Connection
object is now tied to the lifetime of theClientWrapper
and dropped as soon as possible. The disconnect is not graceful and you might see error messages in the database log. - Update
deadpool
dependency to version0.10
- Bump up MSRV to
1.63
to match the one oftokio
0.10.5 - 2023-01-24
- Fix infinite recursion in
GenericClient
0.10.4 - 2023-01-16 (yanked)
- Add
GenericClient
0.10.3 - 2022-10-26
- Make
Transaction::statement_cache
field public
0.10.2 - 2022-03-22
- Export
TargetSessionAttrs
andChannelBinding
enums (part ofConfig
struct)
0.10.1 - 2021-11-15
- Config structs now implement
Serialize
0.10.0 - 2021-10-18
- Breaking: Replace
config
feature withserde
(opted out by default) - Re-export
deadpool::managed::Timeouts
- Add
Runtime
parameter toConfig::create_pool
method - Remove redundant
futures
dependency
0.9.0 - 2021-06-01
- Remove generic
<T>
parameter fromManager
,Pool
andClient
types. This parameter was added by accident when deadpool switched to using associated types.
0.8.1 - 2021-06-01
- Update
tokio-postgres
dependency to version0.7.2
This crate depends on theGenericClient::client
method which was added intokio-postgres
version0.7.2
.
0.8.0 - 2021-05-21
- Do not detect unix domain socket paths at config creation.
- Update
config
dependency to version0.11
- Remove deprecated
from_env
methods - Add
Manager::statement_caches
field which provides access to managing the statement cache for all clients. - Rename
prepare
toprepare_cached
andprepare_typed
toprepare_typed_cached
. This makes the non-caching prepare methods available without having to dereferenceClientWrapper
orTransaction
objects first. - Add
rt_tokio_1
andrt_async-std_1
features - Enable
RecyclingMethod::Fast
by default
0.7.0 - 2020-12-26
- Update
tokio
dependency to version1
- Update
tokio-postgres
dependency to version0.7
- Re-export
deadpool::managed::PoolConfig
- Add
StatementCache::remove
method
0.6.0 - 2020-11-04
- Update
tokio
dependency to version0.3
- Update
tokio-postgres
dependency to version0.6
0.5.6 - 2020-07-14
- Add
Config::new
method - Add
Client::build_transaction
method which makes it possible to use theTransactionBuilder
with the statement cache. - Add
RecyclingMethod::Clean
which works similar toDISCARD ALL
but makes sure the statement cache is not rendered ineffective. - Add
RecyclingMethod::Custom
which allows to execute arbitary SQL when recycling connections. - Re-export
tokio_postgres
crate
0.5.5 - 2020-02-28
- Deprecate
Config::from_env
- Add
Manager::from_config
,ManagerConfig
andRecyclingMethod
which makes it possible to specify how connections are recycled. The current default recycling method isVerified
which is the same as before. The upcoming0.6
release of this crate will change the default toFast
.
0.5.4 - 2020-01-26
- Implement
DerefMut
forTransaction
wrapper - Add
transaction
method toTransaction
wrapper
0.5.3 - 2020-01-24
- Add
#[derive(Clone)]
toConfig
struct - Make
config
module public
0.5.2 - 2020-01-18
- Disable
default-features
fordeadpool
dependency
0.5.1 - 2020-01-17
- Fix windows support
0.5.0 - 2020-01-16
- Add support for
config
crate
0.4.3 - 2020-01-10
prepare
andprepare_typed
now accept a&self
instead of&mut self
which fixes support for pipelining.
0.4.2 - 2019-12-31
- Add
PoolError
type alias
0.4.1 - 2019-12-29
- Update to
tokio-postgres 0.5.1
- Add back
DerefMut
implementation fordeadpool_postgres::Client
which makes it compatible with code expecting&mut tokio_postgres::Client
. - Add statement cache support for
Client::prepare_typed
andTransaction::prepare_typed
.
0.4.0 - 2019-12-19
- Rename
Client
struct toClientWrapper
- Add
Client
type alias
0.3.0 - 2019-12-13
- Add
StatementCache
struct with the functionssize
andclear
which are now accessible viaConnection::statement_cache
andTransaction::statement_cache
. - Make recycling more robust by changing the
Manager::recycle
to a non consuming API.
0.2.3 - 2019-12-02
- Add documentation for
docs.rs
- Improve example in
README.md
and crate root - Fix
Transaction::commit
andTransaction::rollback
0.2.2 - 2019-12-02
- Update to
tokio 0.2
andtokio-postgres 0.5.0-alpha.2
0.2.1 - 2019-11-18
deadpool_postgres::Client
no longer implementsDerefMut
which was not needed anyways.deadpool_postgres::Client.transaction
now returns a wrapped transaction object which utilizes the statement cache of the wrapped client.
0.2.0 - 2019-11-18
- First release