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
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
Steven Fackler
6c77baad1b
Merge pull request #503 from ivan/master
...
Add query_one to postgres::Transaction
2019-10-27 10:29:31 -04:00
Ivan Kozik
0b5ca1bd68
Add query_one to postgres::Transaction
...
I believe this was missed in 31855141d2
2019-10-27 13:06:16 +00:00
Steven Fackler
286f41d423
Remove out of date README
...
Each individual subcrate will gain its own README for display on
crates.io
2019-10-21 18:04:58 -07:00
Steven Fackler
a2b3a222ab
Merge pull request #501 from mibac138/master
...
Support uuid v0.8 and update dependencies
2019-10-19 20:17:40 -04: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
Steven Fackler
7a95f6a3e4
pin_mut is in futures now
2019-10-18 22:33:33 -04:00