Steven Fackler
33703689e0
Clean up licenses
2021-10-28 19:22:13 -04:00
Steven Fackler
d45461614a
Release postgres v0.19.2
2021-09-29 19:38:29 -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
Steven Fackler
2ab49f6c56
Release postgres v0.19.1
2021-04-03 17:14:25 -04: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
Steven Fackler
4fb6fd906f
Release tokio-postgres v0.7.0
2020-12-25 09:09:17 -05:00
Steven Fackler
71fc3e74bd
Release postgres-types v0.2.0
2020-12-25 09:02:02 -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
5e065c36cd
Release v0.18.1
2020-10-19 20:02:01 -04:00
Steven Fackler
db90323b08
Make postgres::Client Send again
...
Closes #677
2020-10-19 19:58:41 -04:00
Steven Fackler
cc77ad18d5
Release postgres v0.18.0
2020-10-17 15:16:56 -04:00
Steven Fackler
12e2f03b53
Release tokio-postgres v0.6.0
2020-10-17 15:06:10 -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
f6620e6a24
Release postgres v0.17.5
2020-07-19 13:27:27 -06:00
Steven Fackler
a4a68d543d
Ensure transactions roll back immediately on drop
...
Closes #635
2020-07-19 13:24:46 -06:00
Steven Fackler
27b36f53e2
Release postgres v0.17.3
2020-07-03 15:23:33 -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
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
Steven Fackler
f9ba58967b
Release postgres v0.17.3
2020-05-01 16:15:31 -07: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
Steven Fackler
ff36ce993d
Release postgres v0.17.2
2020-03-05 17:13:32 -08:00
Aaron Loucks
2082d4f781
Add support for time-0.2 types
2020-02-28 18:05:51 -05: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
cc9b8232a8
Release postgres v0.17.1
2020-01-31 18:04:59 -08: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