Commit Graph

390 Commits

Author SHA1 Message Date
Steven Fackler
e71335ee43
fix serialization of oidvector 2023-05-01 19:33:49 -04:00
Niklas Hallqvist
e59a165241
rustfmt 2023-04-04 15:43:39 +02:00
Niklas Hallqvist
45d51d708c
OpenBSD misses some TCP keepalive options 2023-04-04 14:27:45 +02:00
Paul Hemberger
62a443222c use correct error type 2023-03-27 16:47:58 -04:00
Paul Hemberger
a9967c05ff docs: mention sys default if 0 2023-03-27 16:47:48 -04:00
Paul Hemberger
ee5a139028 add in to param parsing; update doc 2023-03-24 13:11:18 -04:00
Paul Hemberger
b4c05f4f81 wire through knob for TCP user timeout 2023-03-24 11:46:20 -04:00
Benjamin Swart
7c7c80dcaa Make incorrect number of paramaters an error 2023-02-25 18:24:35 +01:00
Alex Chi
b1842390c3 update comments
Signed-off-by: Alex Chi <iskyzh@gmail.com>
2023-01-16 22:54:20 -05:00
Alex Chi
205af89aaf feat: add rows_affected to RowStream
Signed-off-by: Alex Chi <iskyzh@gmail.com>
2023-01-15 21:16:56 -05:00
Steven Fackler
383fd50f75
Update tokio-postgres/src/generic_client.rs 2023-01-08 08:32:00 -05:00
Ari Breitkreuz
e38e435665 add batch_execute to generic client 2023-01-08 12:21:42 +01:00
Steven Fackler
0c056148d0
Clarify poll_message docs
Closes #975
2023-01-01 20:33:06 -05:00
xxchan
be90d0e848 derive Debug for SimpleQueryMessage 2022-12-07 12:29:28 +01:00
Joseph Koshakow
0c86f9362f Add multirange kind and run cargo fmt 2022-11-21 18:40:37 -05:00
Joseph Koshakow
f413e66b14 Add support for multiranges 2022-11-21 18:40:37 -05:00
Joseph Koshakow
b29164d53a Add idle session timeout error
This commit adds the idle session timeout error (57P05). See
https://www.postgresql.org/docs/current/errcodes-appendix.html
2022-11-21 18:40:37 -05:00
Hirotaka Azuma
d7ccbb3d42 Review fix: Avoid redundant function calls. 2022-08-27 14:19:01 +00:00
Hirotaka Azuma
5551b3e6cd Revert "Review fix: get_connect_timeout returns copied Option."
This reverts commit 4882ecc2de.
2022-08-27 14:18:27 +00:00
Hirotaka Azuma
4882ecc2de Review fix: get_connect_timeout returns copied Option. 2022-08-27 13:58:31 +00:00
Hirotaka Azuma
0fcd0c26a5 Review fix: get_keepalives_{interval,retries} returns copied Option. 2022-08-27 13:56:17 +00:00
Hirotaka Azuma
a97e17b51e Fix CI error: Prevent "unused imports" in --no-default-features. 2022-08-27 13:46:22 +00:00
Hirotaka Azuma
b5a53960b1 Review fix: Define features regardless of platform and do nothing if not supported. 2022-08-26 19:27:06 +00:00
Hirotaka Azuma
a78ce35d44 Support keepalive interval and retries. 2022-08-26 08:45:04 +00:00
Alex Pearson
8158eed052 Move parameter count assertion above format encoding derivation 2022-08-16 08:13:26 -04:00
Alex Pearson
569689deaa encode format with types 2022-08-16 08:13:26 -04:00
Basti Ortiz
5f3e7aecad
Fix: address Clippy warnings 2022-08-15 00:37:47 +08:00
Basti Ortiz
65c1d146a6
Chore(tokio-postgres): prefer sub-crates of futures 2022-08-14 23:31:17 +08:00
Steven Fackler
a624282bed
rustfmt 2022-08-04 13:07:13 -04:00
Steven Fackler
d7b10f2cea
cleanup 2022-07-18 20:18:18 -04:00
Steven Fackler
09e86560dd
Merge pull request #836 from subzerocloud/master
Implement Unknown encoding for query parameters
2022-07-18 20:16:40 -04:00
Lachezar Lechev
a410a5fe04
Add array-impls feature in docs table 2022-06-21 13:31:31 +02:00
Mateusz Mikuła
1d9c93d2ae Add conversions from Uuid 1.0 2022-04-20 21:57:59 +02:00
Dmitry Ivanov
cf381ce6a2 Hide tokio_postgres::client::SocketConfig behind "runtime" feature
This fixes warnings reported by rust 1.60 when doing the following:

```shell
$ cargo test --manifest-path tokio-postgres/Cargo.toml --no-default-features
```
2022-04-16 18:06:01 +03:00
Steven Fackler
76cd380e5a
clippy 2021-12-08 18:35:18 -05:00
Ruslan Talpa
683868850e remove "Unknown" and add Format enum 2021-11-19 09:22:36 +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
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
b2df11579f Fix commit-time error reporting
Closes #832
2021-10-19 19:36:14 -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
be0c85ac0b Update phf 2021-08-10 20:30:27 -04:00
Steven Fackler
57cacb65fe Upgrade phf 2021-06-21 21:30:41 -04:00
Tim Anderson
a8383dcc29 Add support for eui48 version 1.0 2021-06-03 10:54:37 +10:00
Marcin Pajkowski
b03ffcd043 expose SimpleQueryRow's column names 2021-05-29 23:44:17 +02: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
91ce9cdeec fix clippy 2021-04-24 10:34:51 -04:00