Steven Fackler
27635a20ca
Clean up GenericClient traits
2020-01-31 13:59:37 -08:00
dvic
5d08af01ec
Remove unnecessary impl GenericClient docs
2020-01-27 15:25:02 +01:00
dvic
1ea8b7b2d4
Fix self references in GenericClient
2020-01-27 11:14:27 +01:00
dvic
afc9b2835d
Add missing methods to GenericClient
...
This adds `execute_raw`, `query_one`, `query_opt`, `query_raw`,
and `prepare_typed` to the generic trait introduced in #525 .
2020-01-27 10:23:10 +01: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
Steven Fackler
24d4b92336
Whitelist clippy lint
...
async_trait requires this to be explicit
2020-01-02 21:05:38 -05: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
7bd21b492e
Merge pull request #531 from benesch/synchronous-cancel
...
Support cancellation in synchronous client
2019-12-30 21:09:19 -05:00
Steven Fackler
7e66fa4f7f
Merge pull request #535 from benesch/introspect-config
...
Expose accessors on Config object
2019-12-30 07:25:13 -08:00
Steven Fackler
850512be8b
Remove old dev dependency
2019-12-29 18:42:48 -08:00
Christofer Nolander
8a3edc97de
Put unused type parameter back into use
2019-12-29 23:05:45 +01: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
Steven Fackler
2093f3e1ee
Release tokio-postgres v0.5.1
2019-12-25 08:19:43 -08:00
Nikhil Benesch
6d18d7955e
Remove debugging printlns from copy out protocol
2019-12-25 11:12:55 -05:00
Steven Fackler
1f773f08e3
Release tokio-postgres v0.5.0
2019-12-23 15:40:49 -08:00
Steven Fackler
245ccb7bab
Release postgres-types v0.1.0
2019-12-23 15:31:41 -08:00
Steven Fackler
1c5ceebe8a
Release postgres-protocol v0.5.0
2019-12-23 15:23:25 -08:00
Steven Fackler
2615441c7d
Doc cleanup and "real" extensible enums
2019-12-21 18:14:28 -08:00
Steven Fackler
37d0a83434
remove uuid 0.7 support
2019-12-19 16:41:26 -08:00
Steven Fackler
8ee231f803
Add remaining log statements
2019-12-17 18:11:40 -08:00
Steven Fackler
0e41aea531
Merge pull request #524 from bikeshedder/features/fix-issue-492
...
Add back logging of queries
2019-12-16 10:42:07 -05:00
Michael P. Jung
d9a999a578
Add back logging of queries
...
This fixes #492
2019-12-16 14:36:23 +01:00
Steven Fackler
a254e6e9e9
Blocking binary copy support
2019-12-15 17:01:53 -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
0c84ed9f82
rustfmt
2019-12-04 18:59:22 -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
a22f63b5bb
Fix sqlstate generation
2019-12-02 17:55:08 -08:00
Steven Fackler
b4694471ad
Add query_opt
...
Closes #510
2019-11-30 18:18:50 -05:00
Steven Fackler
299ef6c8dd
Rename CopyStream to CopyOutStream
2019-11-30 16:17:23 -05:00
Steven Fackler
ef0b79fbcb
docs fix
2019-11-30 11:45:33 -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
47d97f0d2e
Relase tokio-postgres v0.5.0-alpha.2
2019-11-27 20:48:01 -05:00
Steven Fackler
eff68d547f
Upgrade parking-lot
2019-11-27 20:42:31 -05:00
Steven Fackler
de2b78dcef
Release postgres-types v0.1.0-alpha.2
2019-11-27 20:38:32 -05:00
Steven Fackler
2d083ec1c8
Release postgres-protocol v0.5.0-alpha.2
2019-11-27 20:32:13 -05:00
Steven Fackler
7eb61c786b
Fix up benchmark
2019-11-26 16:40:36 -08:00
Steven Fackler
12c2ef79b6
Upgrade to tokio 0.2/futures 0.3
2019-11-26 16:32:36 -08:00
Steven Fackler
5423243923
Make CopyStream !Unpin
2019-11-19 04:29:31 -08:00
Steven Fackler
bccfa83aca
Expose CopyOut
2019-11-18 18:39:36 -08:00
Steven Fackler
c98f605622
Switch to pin-project-lite
2019-11-18 18:12:34 -08:00
Steven Fackler
cff1189cda
Include column ID in error
...
Closes #514
2019-11-17 09:17:02 -08:00
Aaron Loucks
2f31e5826d
Change connection initialization timezone to UTC
2019-11-16 18:59:39 -05:00
Steven Fackler
ba39e2f53b
more example fixes
2019-11-05 11:55:59 -08:00
Steven Fackler
a9f371f70c
Clean up tokio-postgres example a bit
2019-11-05 09:56:38 -08:00
Steven Fackler
dc9d07e246
Return a custom TlsStream rather than a ChannelBinding up front
2019-10-27 14:25:58 -07:00
mibac138
9a83196e23
Update dependencies
2019-10-19 20:34:11 +02:00
mibac138
a943a0e666
Support uuid 0.8
2019-10-19 19:52:07 +02:00