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
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
Basti Ortiz
8abc3eaa65
Chore(postgres): prefer sub-crates of futures
2022-08-14 23:49:40 +08:00
Mateusz Mikuła
1d9c93d2ae
Add conversions from Uuid 1.0
2022-04-20 21:57:59 +02:00
Laurențiu Nicola
be0d71fad5
Add support for time 0.3
2021-09-24 08:26:37 +03:00
Tim Anderson
a8383dcc29
Add support for eui48 version 1.0
2021-06-03 10:54:37 +10:00
Steven Fackler
844a27a074
Add clear_type_cache to blocking client
2021-04-03 16:55:59 -04:00
George London
77cfee0da1
Fix minor docstring typo
2021-02-05 19:49:36 -08: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
Steven Fackler
de831c3a53
Release postgres v0.19.0
2020-12-25 09:14:39 -05:00
Nikhil Benesch
f1729e4636
deps: upgrade to tokio v1.0 ecosystem
2020-12-24 18:38:05 -05:00
Steven Fackler
2ab708c4bc
minor cleanup
2020-12-17 20:36:15 -05:00
zach-com
9856c7b87a
Replace impl From block
2020-12-17 17:55:22 -05:00
zach-com
ef95f34c34
cargo fmt
2020-12-16 22:17:21 -05:00
zach-com
ee65811272
Avoid unnecessary function call
2020-12-16 15:56:16 -05:00
zach-com
f655c3b74c
Address pull request comments
2020-12-16 15:26:06 -05:00
zach-com
07d9fb2ed6
Support connection validation with timeout
2020-12-11 13:47:39 -05:00
Nicolas Guiard
c4b1f5ab5c
Fix unix socket location in docs (/var/run/postgresql instead of /var/lib/postgresql)
2020-11-11 11:14:28 +01:00
Bernardo Uriarte Blanco
996f063380
map to convert to &dyn ToSql is not longer necessary
2020-10-27 20:31:15 +01:00
Bernardo Uriarte Blanco
0e494a08a9
change rest of *_raw methods to use BorrowToSql
2020-10-27 18:08:23 +01:00
Steven Fackler
db90323b08
Make postgres::Client Send again
...
Closes #677
2020-10-19 19:58:41 -04:00
Steven Fackler
2689070d19
Upgrade to tokio 0.3
2020-10-17 09:49:45 -04:00
Nikhil Benesch
4af6fcd911
Permit configuring the notice callback
...
Right now the behavior is hardcoded to log any received notices at the
info level. Add a `notice_callback` configuration option that permits
installing an arbitrary callback to handle any received notices.
As discussed in #588 .
2020-09-21 20:04:35 -04:00
Steven Fackler
bc682b3103
Explicitly terminate the connection in sync API
...
Closes #613
2020-07-27 21:42:02 -04:00
Steven Fackler
a4a68d543d
Ensure transactions roll back immediately on drop
...
Closes #635
2020-07-19 13:24:46 -06:00
Steven Fackler
3e67dbb773
Fix clippy
2020-06-10 16:54:07 -07:00
Jakub Wieczorek
887be86816
Add support for geo-types=0.5
...
Support for geo-types=0.4 (via the `with-geo-types_04` feature) has been preserved for convenience.
2020-05-25 13:45:17 +02:00
Naim A
a1efddd64a
fix typo
2020-05-12 13:48:01 +03:00
Nathan VanBenschoten
64d6e97eff
Re-add savepoint method to Transaction
...
Revives #184 .
The rewrite for async/await and Tokio accidentally lost functionality
that allowed users to assign specific names to savepoints when using
nested transactions. This functionality had originally been added
in #184 and had been updated in #374 .
This commit revives this functionality using a similar scheme to the
one that existed before. This should allow CockroachDB users to update
to the next patch release of version `0.17`.
2020-05-01 12:55:48 -04:00
Nikhil Benesch
dd0c39e041
Don't accidentally return early from CopyOutReader
...
The COPY OUT protocol allows sending CopyData packets that have no data.
The (synchronous) CopyOutReader needs to be careful not to return an
empty slice in this case, but instead request more data, since an empty
slice is taken to mean EOF.
2020-04-01 14:17:02 -04:00
Steven Fackler
3c4a0af6ff
Add a notification API to the blocking client
...
This mirrors the implementation in the old 0.15 release, but is quite a
bit simpler now that we're built on the nonblocking API!
2020-03-22 15:22:07 -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
Michael P. Jung
b10f964a1b
Add documentation for crate features
...
This closes #544
2020-03-16 15:10:25 +01:00
Andreas Runfalk
778f278059
Added information on how to use Vec<T> with Client::query_raw ( fixes #567 )
2020-02-06 07:49:59 +01:00
Steven Fackler
4bf40cd1d3
Reorder methods
2020-01-31 14:01:16 -08:00
Steven Fackler
27635a20ca
Clean up GenericClient traits
2020-01-31 13:59:37 -08: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
f1ac3bd9d7
Always include Client::configure
2020-01-08 17:29:45 -08:00
Steven Fackler
214413d9dc
Add transaction builders
...
Closes #543
2020-01-08 17:23:28 -08:00
Steven Fackler
3ba416ded6
Add tokio_postgres::GenericClient
...
We have to make the trait methods differ from the normal methods a bit
by adding Sync + Send bounds to the ToStatement parameter which is a bit
unfortunate, but necessary until GATs async_trait unnecessary.
Closes #357
2020-01-02 21:01:47 -05:00
Steven Fackler
a865207ff6
Rename to GenericClient
2020-01-02 20:44:07 -05:00
Colin Maxfield
7ff4b3a2e9
Merge latest master into branch
2020-01-02 10:24:19 -05:00
Steven Fackler
7bd21b492e
Merge pull request #531 from benesch/synchronous-cancel
...
Support cancellation in synchronous client
2019-12-30 21:09:19 -05:00
Nikhil Benesch
b73ec018b7
Expose accessors on Config object
...
Fix #534 .
2019-12-29 15:15:48 -05:00
Nikhil Benesch
33dbbcbee7
Support cancellation in synchronous client
2019-12-29 14:08:17 -05:00
Colin Maxfield
508b430753
Adding generic for execute function for genericconnection
2019-12-28 16:36:56 -05:00