deadpool-postgres
Dead simple async pool for tokio-postgres
0.14.1
21M downloads/mo
#2057 most downloaded on crates.io
bikeshedder/deadpool
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Ships fairly regularly
a new release about every 4 months
Nearly every release is documented
notes for 34 of 34 stable releases
1 version withdrawn
withdrawn after publishing
7 years old
35 releases · first in 2019
0 releases in the last 12 months
see the full history below
Release timeline
35 releases · Nov 2019 to Dec 2024Releases
latest 35-
0.14.118 Dec 2024 -
0.14.004 Jun 2024Release notes
Open source →- Add back
async_traitto theGenericClienttrait. The removal ofasync_traitcaused some errors for code using the generic client interface. A test was added to ensure future removals ofasync_traitwill not cause this code to break.
- Add back
-
0.13.207 May 2024Release notes
Open source →- Add WASM support
- Expose API for providing a custom
Connectimplementation. - Add
+ Sendto futures returned byGenericClient
-
0.13.104 May 2024Release notes
Open source →- Update
deadpooldependency to version0.12 - Add
LICENSE-APACHEandLICENSE-MITfiles to published crates
- Update
-
0.13.031 Mar 2024Release notes
Open source →- Update
deadpooldependency to version0.11 - Remove
async_traitdependency - Bump up MSRV to
1.75
- Update
-
0.12.118 Dec 2023 -
0.12.015 Dec 2023Release notes
Open source →- Add
load_balance_hoststoConfigstruct. - Add
hostaddrandhostaddrstoConfigstruct. - Add
urlfield toConfigstruct. This enables parsing of connection URLs.
- Add
-
0.11.026 Sep 2023Release notes
Open source →- 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
Connectionobject is now tied to the lifetime of theClientWrapperand dropped as soon as possible. The disconnect is not graceful and you might see error messages in the database log. - Update
deadpooldependency to version0.10 - Bump up MSRV to
1.63to match the one oftokio
- 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
-
0.10.524 Jan 2023 -
0.10.417 Jan 2023 withdrawn -
0.10.326 Oct 2022 -
0.10.222 Mar 2022Release notes
Open source →- Export
TargetSessionAttrsandChannelBindingenums (part ofConfigstruct)
- Export
-
0.10.115 Nov 2021 -
0.10.018 Oct 2021Release notes
Open source →- Breaking: Replace
configfeature withserde(opted out by default) - Re-export
deadpool::managed::Timeouts - Add
Runtimeparameter toConfig::create_poolmethod - Remove redundant
futuresdependency
- Breaking: Replace
-
0.9.001 Jun 2021Release notes
Open source →- Remove generic
<T>parameter fromManager,PoolandClienttypes. This parameter was added by accident when deadpool switched to using associated types.
- Remove generic
-
0.8.101 Jun 2021Release notes
Open source →- Update
tokio-postgresdependency to version0.7.2This crate depends on theGenericClient::clientmethod which was added intokio-postgresversion0.7.2.
- Update
-
0.8.020 May 2021Release notes
Open source →- Do not detect unix domain socket paths at config creation.
- Update
configdependency to version0.11 - Remove deprecated
from_envmethods - Add
Manager::statement_cachesfield which provides access to managing the statement cache for all clients. - Rename
preparetoprepare_cachedandprepare_typedtoprepare_typed_cached. This makes the non-caching prepare methods available without having to dereferenceClientWrapperorTransactionobjects first. - Add
rt_tokio_1andrt_async-std_1features - Enable
RecyclingMethod::Fastby default
-
0.7.026 Dec 2020Release notes
Open source →- Update
tokiodependency to version1 - Update
tokio-postgresdependency to version0.7 - Re-export
deadpool::managed::PoolConfig - Add
StatementCache::removemethod
- Update
-
0.6.004 Nov 2020Release notes
Open source →- Update
tokiodependency to version0.3 - Update
tokio-postgresdependency to version0.6
- Update
-
0.5.614 Jul 2020Release notes
Open source →- Add
Config::newmethod - Add
Client::build_transactionmethod which makes it possible to use theTransactionBuilderwith the statement cache. - Add
RecyclingMethod::Cleanwhich works similar toDISCARD ALLbut makes sure the statement cache is not rendered ineffective. - Add
RecyclingMethod::Customwhich allows to execute arbitary SQL when recycling connections. - Re-export
tokio_postgrescrate
- Add
-
0.5.528 Feb 2020Release notes
Open source →- Deprecate
Config::from_env - Add
Manager::from_config,ManagerConfigandRecyclingMethodwhich makes it possible to specify how connections are recycled. The current default recycling method isVerifiedwhich is the same as before. The upcoming0.6release of this crate will change the default toFast.
- Deprecate
-
0.5.426 Jan 2020Release notes
Open source →- Implement
DerefMutforTransactionwrapper - Add
transactionmethod toTransactionwrapper
- Implement
-
0.5.324 Jan 2020 -
0.5.218 Jan 2020 -
0.5.117 Jan 2020 -
0.5.016 Jan 2020 -
0.4.310 Jan 2020Release notes
Open source →prepareandprepare_typednow accept a&selfinstead of&mut selfwhich fixes support for pipelining.
-
0.4.231 Dec 2019 -
0.4.129 Dec 2019Release notes
Open source →- Update to
tokio-postgres 0.5.1 - Add back
DerefMutimplementation fordeadpool_postgres::Clientwhich makes it compatible with code expecting&mut tokio_postgres::Client. - Add statement cache support for
Client::prepare_typedandTransaction::prepare_typed.
- Update to
-
0.4.019 Dec 2019 -
0.3.013 Dec 2019Release notes
Open source →- Add
StatementCachestruct with the functionssizeandclearwhich are now accessible viaConnection::statement_cacheandTransaction::statement_cache. - Make recycling more robust by changing the
Manager::recycleto a non consuming API.
- Add
-
0.2.302 Dec 2019Release notes
Open source →- Add documentation for
docs.rs - Improve example in
README.mdand crate root - Fix
Transaction::commitandTransaction::rollback
- Add documentation for
-
0.2.202 Dec 2019 -
0.2.118 Nov 2019Release notes
Open source →deadpool_postgres::Clientno longer implementsDerefMutwhich was not needed anyways.deadpool_postgres::Client.transactionnow returns a wrapped transaction object which utilizes the statement cache of the wrapped client.
-
0.2.014 Nov 2019Release notes
Open source →- First release
<!-- next-url --> [Unreleased]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.14.1...HEAD [0.14.1]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.14.0...deadpool-postgres-v0.14.1 [0.14.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.13.2...deadpool-postgres-v0.14.0 [0.13.2]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.13.1...deadpool-postgres-v0.13.2 [0.13.1]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.13.0...deadpool-postgres-v0.13.1 [0.13.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.12.1...deadpool-postgres-v0.13.0 [0.12.1]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.12.0...deadpool-postgres-v0.12.1 [0.12.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.11.0...deadpool-postgres-v0.12.0 [0.11.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.10.5...deadpool-postgres-v0.11.0 [0.10.5]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.10.4...deadpool-postgres-v0.10.5 [0.10.4]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.10.3...deadpool-postgres-v0.10.4 [0.10.3]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.10.2...deadpool-postgres-v0.10.3 [0.10.2]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.10.1...deadpool-postgres-v0.10.2 [0.10.1]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.10.0...deadpool-postgres-v0.10.1 [0.10.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.9.0...deadpool-postgres-v0.10.0 [0.9.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.8.1...deadpool-postgres-v0.9.0 [0.8.1]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.8.0...deadpool-postgres-v0.8.1 [0.8.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.7.0...deadpool-postgres-v0.8.0 [0.7.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.6.0...deadpool-postgres-v0.7.0 [0.6.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.5.6...deadpool-postgres-v0.6.0 [0.5.6]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.5.5...deadpool-postgres-v0.5.6 [0.5.5]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.5.4...deadpool-postgres-v0.5.5 [0.5.4]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.5.3...deadpool-postgres-v0.5.4 [0.5.3]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.5.2...deadpool-postgres-v0.5.3 [0.5.2]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.5.1...deadpool-postgres-v0.5.2 [0.5.1]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.5.0...deadpool-postgres-v0.5.1 [0.5.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.4.3...deadpool-postgres-v0.5.0 [0.4.3]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.4.2...deadpool-postgres-v0.4.3 [0.4.2]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.4.1...deadpool-postgres-v0.4.2 [0.4.1]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.4.0...deadpool-postgres-v0.4.1 [0.4.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.3.0...deadpool-postgres-v0.4.0 [0.3.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.2.3...deadpool-postgres-v0.3.0 [0.2.3]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.2.2...deadpool-postgres-v0.2.3 [0.2.2]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.2.1...deadpool-postgres-v0.2.2 [0.2.1]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.2.0...deadpool-postgres-v0.2.1 [0.2.0]: https://github.com/deadpool-rs/deadpool/releases/tag/deadpool-postgres-v0.2.0