Commit Graph

115 Commits

Author SHA1 Message Date
Steven Fackler
d92b3b0a63
Fix int2vector serialization 2023-05-01 19:45:54 -04:00
Steven Fackler
e71335ee43
fix serialization of oidvector 2023-05-01 19:33:49 -04:00
Steven Fackler
f48c3b577f
more deprecations 2022-11-21 15:26:37 -08: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
Steven Fackler
34efb053ec
rustfmt 2022-08-20 15:19:17 -04:00
Steven Fackler
d6a6e9db83
Fix smol_str feature 2022-08-20 15:18:19 -04:00
Basti Ortiz
65c1d146a6
Chore(tokio-postgres): prefer sub-crates of futures 2022-08-14 23:31:17 +08:00
Mateusz Mikuła
1d9c93d2ae Add conversions from Uuid 1.0 2022-04-20 21:57:59 +02:00
Matt Oliver
6fae6552ec Fix tests, replace match with matches! 2022-03-16 21:23:15 -05:00
Matt Oliver
d9d283e131 Split out ltree,query,txtquery protocol parsers, add tests, rust fmt 2022-03-16 21:23:15 -05:00
Matt Oliver
944b72974f Add ltree, lquery and ltxtquery support 2022-03-16 21:23:15 -05: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
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
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
Steven Fackler
fc10985f9f rustfmt 2021-03-28 20:31:59 -04:00
Steven Fackler
af7825308d fix clippy 2021-03-28 20:28:18 -04:00
Steven Fackler
ad2c8cf592 clippy 2021-03-16 20:44:50 -04:00
Michael Kirk
8b8491f31d retain support for geo-types-0.6 2021-01-25 14:52:02 -06:00
Michael Kirk
37fb39202a Added support for geo-types 0.7 via with-geo-types-0_7 feature 2021-01-25 09:30:30 -06:00
Jeff Davis
f3cbc8ce04 PgLsn type. 2021-01-09 15:18:26 -08:00
Steven Fackler
2689070d19 Upgrade to tokio 0.3 2020-10-17 09:49:45 -04:00
Nikhil Benesch
a30f0b6c05 Use checked arithmetic when decoding into chrono types
This avoids an overflow panic if the timestamp is the special "infinity"
or "-infinity" value and produces an error instead.

Fix #640.
2020-07-30 22:52:56 -04:00
Jakub Wieczorek
5d9acb1eb1 Add support for the 0.6 version of geo_types.
This change drops the support for the 0.5 version by renaming the feature,
as no version of `postgres` with it included has ever been released.
2020-06-24 12:28:21 +02:00
Steven Fackler
2b59b7e63c fix clippy 2020-05-25 05:54:19 -07:00
Steven Fackler
e7661fd71f Fix geo-types tests 2020-05-25 05:48:40 -07:00
Steven Fackler
fd3a99c225 Don't spawn off connection in blocking impl
We can now directly return fatal errors, and intercept notifications
2020-03-22 12:05:00 -07:00
Aaron Loucks
f33b145cd6 Remove fractional seconds from time_02 tests 2020-02-28 19:30:05 -05:00
Aaron Loucks
25db147e87 Port chrono tests to time tests 2020-02-28 19:03:59 -05:00
Nikhil Benesch
7ea1b2d785
Don't suppress notices during startup flow
NoticeResponses received during the startup flow were previously being
dropped on the floor. Instead stash them away so they can be delivered
to the user after the startup flow is complete.
2020-01-31 00:37:01 -05:00
Steven Fackler
a54ee29704 Allow opt-out of transaction settings
If you changed the default transaction settings of the session, you may
need an explicit opt-out.
2020-01-10 17:49:18 -08:00
Steven Fackler
214413d9dc Add transaction builders
Closes #543
2020-01-08 17:23:28 -08:00
Nikhil Benesch
33dbbcbee7
Support cancellation in synchronous client 2019-12-29 14:08:17 -05:00
Steven Fackler
37d0a83434 remove uuid 0.7 support 2019-12-19 16:41:26 -08:00
Steven Fackler
4a5a277878 query_opt test 2019-12-10 16:34:04 -08:00
Steven Fackler
bf8b335d2b Move binary copy stuff directly into main crate 2019-12-08 18:30:47 -08:00
Steven Fackler
5c33bf8b30 Don't take parameters in copy_in and copy_out
Postgres doesn't support them, so we may as well not provide the option!

Closes #523
2019-12-04 18:51:59 -08:00
Steven Fackler
b4694471ad Add query_opt
Closes #510
2019-11-30 18:18:50 -05:00
Steven Fackler
e5e03b0064 Change the copy_in interface
Rather than taking in a Stream and advancing it internally, return a
Sink that can be advanced by the calling code. This significantly
simplifies encoding logic for things like tokio-postgres-binary-copy.

Similarly, the blocking interface returns a Writer.

Closes #489
2019-11-30 11:04:59 -05:00
Steven Fackler
12c2ef79b6 Upgrade to tokio 0.2/futures 0.3 2019-11-26 16:32:36 -08:00
Steven Fackler
dc9d07e246 Return a custom TlsStream rather than a ChannelBinding up front 2019-10-27 14:25:58 -07:00
mibac138
a943a0e666 Support uuid 0.8 2019-10-19 19:52:07 +02:00
Steven Fackler
ffd7245e54 Use BytesMut for messages
Benchmarks indicate that malloc accounts for a significant amount of the
runtime of queries. The message buffer accounts for ~half of that (the
other being channels), and this change should eliminate it.
2019-10-12 16:30:27 -07:00
Steven Fackler
01cc7e4715 Clean up derived code 2019-10-10 16:03:48 -07:00
Steven Fackler
31855141d2 Add query_one 2019-10-09 17:45:53 -07:00
Steven Fackler
8c28f8b363 Overhaul simple_query 2019-10-09 17:04:24 -07:00
Steven Fackler
a3f611d609 Overhaul copy_out 2019-10-08 19:01:34 -07:00