Ruslan Talpa
683868850e
remove "Unknown" and add Format enum
2021-11-19 09:22:36 +02:00
Ruslan Talpa
08b7c65f8d
remove as_string
2021-11-02 11:13:25 +02:00
Ruslan Talpa
6c407d39d5
implement Unknown encoding for query parameters
2021-11-01 12:31:59 +02:00
Steven Fackler
8bb5712406
Implement ToStatement for String
...
Closes #794
2021-10-28 19:41:32 -04:00
Steven Fackler
da6e2b1164
Merge pull request #835 from ilslv/master
...
Fix transaction not being rolled back on `Client::transaction()` `Future` dropped before completion
2021-10-28 19:30:25 -04:00
Steven Fackler
33703689e0
Clean up licenses
2021-10-28 19:22:13 -04:00
Steven Fackler
a47a8edf98
Remove src/url.rs from THIRD_PARTY
...
It hasn't existed in the project for quite a while
2021-10-28 19:16:57 -04:00
Steven Fackler
24b01add82
Don't use a built container for test postgres
2021-10-28 19:08:38 -04:00
ilslv
f6189a95f2
Fix transaction not being rolled back on Client::transaction()
Future
dropped before completion
2021-10-28 12:10:30 +03:00
Steven Fackler
0adcf58555
Release tokio-postgres v0.7.4
2021-10-19 19:58:49 -04:00
Steven Fackler
7f38b392e7
Merge pull request #833 from sfackler/deferred-constraint
...
Fix commit-time error reporting
2021-10-19 19:57:42 -04:00
Steven Fackler
b2df11579f
Fix commit-time error reporting
...
Closes #832
2021-10-19 19:36:14 -04:00
Steven Fackler
d45461614a
Release postgres v0.19.2
2021-09-29 19:38:29 -04:00
Steven Fackler
8542d078bf
Release tokio-postgres v0.7.2
2021-09-29 19:34:32 -04:00
Steven Fackler
349c38b1fe
Release postgres-protocol v0.6.2
2021-09-29 19:27:15 -04:00
Steven Fackler
c7785d0b10
Release postgres-types v0.2.2
2021-09-29 19:24:46 -04:00
Steven Fackler
3854aecbb1
Merge pull request #825 from lnicola/gate-doctests
...
Add feature gates for doctests
2021-09-25 13:13:15 -04:00
Laurențiu Nicola
34d8b77644
Add feature gates for doctests
2021-09-25 20:04:41 +03:00
Steven Fackler
031e4e3832
Merge pull request #824 from lnicola/time-0.3
...
Add support for time 0.3
2021-09-24 07:57:41 -04:00
Laurențiu Nicola
be0d71fad5
Add support for time 0.3
2021-09-24 08:26:37 +03:00
Steven Fackler
3e4be86531
more clippy
2021-08-10 21:17:50 -04:00
Steven Fackler
a8a35eb6db
fix clippy
2021-08-10 21:07:20 -04:00
Steven Fackler
be0c85ac0b
Update phf
2021-08-10 20:30:27 -04:00
Steven Fackler
d95eb353dd
Merge pull request #813 from abizjak/master
...
Implement BorrowToSql for an additional type.
2021-07-25 16:58:46 -04:00
Aleš Bizjak
da4e323578
Implement BorrowToSql for an additional type.
...
Closes #811 .
2021-07-25 22:02:28 +02:00
Steven Fackler
99aa7801be
Merge pull request #808 from sfackler/dependabot/cargo/env_logger-0.9
...
Update env_logger requirement from 0.8 to 0.9
2021-07-15 09:36:57 -04:00
dependabot[bot]
24928ebce3
Update env_logger requirement from 0.8 to 0.9
...
Updates the requirements on [env_logger](https://github.com/env-logger-rs/env_logger ) to permit the latest version.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases )
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/main/CHANGELOG.md )
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.8.0...v0.9.0 )
---
updated-dependencies:
- dependency-name: env_logger
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-07-15 13:10:25 +00:00
Steven Fackler
8e2e90a161
Merge pull request #806 from LukasKalbertodt/add-from-to-sql-arrays
...
Add `FromSql` and `ToSql` impls for arrays (guarded behind feature)
2021-07-13 14:13:01 -04:00
Lukas Kalbertodt
06952e2bb0
Use Rust 1.51 in CI
...
We needed to bump the version because the `array-impls` feature
requires const generics.
2021-07-13 16:03:35 +02:00
Lukas Kalbertodt
6c1542f634
Add FromSql
and ToSql
impls for arrays (guarded behind feature)
...
This is feature-gated because those impls require Rust 1.51.
2021-07-13 16:03:35 +02:00
Steven Fackler
9ead59e302
Merge pull request #800 from jrsmith17/master
...
Making Postgres Types Documentation More Explict For Feature Flags
2021-07-11 16:08:57 -04:00
JR Smith
3b7b8000ce
Made requirement of setting feature flags to access derive macros more explicit in the documentation.
2021-07-01 16:04:19 -04:00
Steven Fackler
3eb5a4dab9
actually fix clippy
2021-06-23 20:15:57 -04:00
Steven Fackler
8f7481a86c
fix clippy
2021-06-23 20:02:51 -04:00
Steven Fackler
57cacb65fe
Upgrade phf
2021-06-21 21:30:41 -04:00
Steven Fackler
ff7d88f901
Merge pull request #783 from timando/master
...
Add support for eui48 version 1.0
2021-06-02 21:07:36 -04:00
Tim Anderson
a8383dcc29
Add support for eui48 version 1.0
2021-06-03 10:54:37 +10:00
Steven Fackler
0c064a9f31
Merge pull request #780 from mpajkowski/650/simple-query-row-getter
...
expose SimpleQueryRow's column names
2021-05-30 11:59:56 -04:00
Marcin Pajkowski
b03ffcd043
expose SimpleQueryRow's column names
2021-05-29 23:44:17 +02:00
Steven Fackler
3390cf33ed
Merge pull request #777 from petrosagg/buffered-io
...
tokio-postgres: buffer sockets to avoid excessive syscalls
2021-05-24 13:38:45 -04:00
Petros Angelatos
ca6d4b8162
tokio-postgres: buffer sockets to avoid excessive syscalls
...
The current implementation forwards all read requests to the operating
system through the socket causing excessive system calls. The effect is
magnified when the underlying Socket is wrapped around a TLS
implementation.
This commit changes the underlying socket to be read-buffered by default
with a buffer size of 16K, following the implementation of the official
client.
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2021-05-24 17:58:30 +02:00
Steven Fackler
52de269367
fix clippy
2021-05-18 20:47:26 -04:00
Steven Fackler
1986cb1775
Merge pull request #773 from erikjohnston/avoid_deadlock
...
Fix deadlock when pipelining statements.
2021-05-18 20:45:58 -04:00
Erik Johnston
844a1bd145
Revert change back to always setting the cached statement
2021-05-15 10:25:14 +01:00
Erik Johnston
b7215c60d9
Split State into two.
...
There is no reason for the buffer and typeinfo caches to share the same
lock. By splitting them it means we a) get slightly better performance,
but more importantly b) it makes it harder to accidentally deadlock.
2021-05-14 15:20:36 +01:00
Erik Johnston
a84a45d88e
Fix deadlock when pipelining statements.
...
When executing statements in parallel there is a race where we prepare
the type info queries multiple times, and so insert into the type info
caches multiple times. This resulted in any existing cached `Statement`
to be dropped, running its destructor which attempts to take out the
state lock that is already being held, resulting in a deadlock.
Fixes #772 .
2021-05-14 14:59:07 +01:00
Steven Fackler
3073435009
Merge pull request #761 from sfackler/dependabot/cargo/hmac-0.11
...
Update hmac requirement from 0.10 to 0.11
2021-04-29 17:14:45 -04:00
Steven Fackler
4e8b9078a1
fix build
2021-04-29 17:07:24 -04:00
dependabot[bot]
83616fadb5
Update hmac requirement from 0.10 to 0.11
...
Updates the requirements on [hmac](https://github.com/RustCrypto/MACs ) to permit the latest version.
- [Release notes](https://github.com/RustCrypto/MACs/releases )
- [Commits](https://github.com/RustCrypto/MACs/compare/hmac-v0.10.0...hmac-v0.11.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-04-29 21:02:13 +00:00
Steven Fackler
939218cac1
Merge pull request #760 from sfackler/dependabot/add-v2-config-file
...
Upgrade to GitHub-native Dependabot
2021-04-29 17:00:31 -04:00