Commit Graph

2329 Commits

Author SHA1 Message Date
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
309b647bdb Publicly reexport fallible-iterator from postgres
Closes #520
2019-12-15 17:49:50 -08:00
Steven Fackler
3c85532a76 Fix docs 2019-12-15 17:34:11 -08:00
Steven Fackler
584aca4c17 rustfmt 2019-12-15 17:11:39 -08:00
Steven Fackler
a254e6e9e9 Blocking binary copy support 2019-12-15 17:01:53 -08:00
Steven Fackler
cc8d8fe734 Unify no-op drop impls 2019-12-15 15:58:50 -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
ac4c63f4af Upgrade test postgres to 12.1 2019-12-04 16:52:20 -08:00
Steven Fackler
ed8fb9e8e7 Update docker image to Postgres 12.1 2019-12-04 16:51:55 -08:00
Steven Fackler
9950ff4213 rustfmt 2019-12-03 18:29:06 -08:00
Steven Fackler
09a63d6255 Move to local runtimes per connection
This avoids a bunch of context switches and cross-thread
synchronization, which ends up improving the performance of a simple
query by ~20%, from 252us to 216us.
2019-12-03 18:25:29 -08:00
Steven Fackler
d6163c088f Switch off nightly in CI 2019-12-03 15:26:52 -08:00
Steven Fackler
b425a28b2f Reenable clippy and rustfmt in CI 2019-12-03 15:26:24 -08:00
Steven Fackler
582f075f4c
Merge pull request #515 from bikeshedder/feature/hashable-type
Add Hash implementation to Type
2019-12-03 14:08:26 -05:00
Michael P. Jung
edd9a5aa7f Add Hash implementation to Type 2019-12-03 20:01:43 +01: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
ff3ea1c9df Expose RowIter 2019-11-30 12:13:38 -05:00
Steven Fackler
1390cc57d7 doc fix 2019-11-30 12:01:09 -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
a5428e6a03 wip sync copy-in 2019-11-29 10:15:46 -05:00
Steven Fackler
7c29346cd4 Release postgres-openssl v0.3.0-alpha.2 2019-11-27 21:07:51 -05:00
Steven Fackler
dc2416011a Release postgres-native-tls v0.3.0-alpha.2 2019-11-27 21:04:44 -05:00
Steven Fackler
fa3b068da7 Release postgres v0.17.0-alpha.2 2019-11-27 21:01:24 -05:00
Steven Fackler
223514fcd5 Fix custom spawn interface in sync API 2019-11-27 20:58:02 -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
4a51a7e00a Fix serde-json 2019-11-26 16:43:10 -08: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
5517719b07 Binary copy out support 2019-11-23 04:45:05 -08:00
Steven Fackler
a94127c05d
Merge pull request #518 from quodlibetor/message-length-error-uniqueness
Make all invalid message length errors unique
2019-11-19 11:09:23 -05:00
Brandon W Maister
4a3df873e9 Make all invalid message length errors unique 2019-11-19 10:28:31 -05: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
6e2435eb60 Write full rows in binary copy 2019-11-18 18:06:03 -08:00
Steven Fackler
8ebe859183 Start on binary copy rewrite 2019-11-17 18:28:12 -08:00
Steven Fackler
cff1189cda Include column ID in error
Closes #514
2019-11-17 09:17:02 -08:00
Steven Fackler
1884b85283
Merge pull request #513 from aloucks/timezone
Change connection initialization timezone to UTC
2019-11-17 08:34:59 -05: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