Steven Fackler
5283ad4a08
Clean up workaround
2019-09-19 14:45:15 -07:00
Steven Fackler
b7fe6bece5
Update to newest nightly
2019-09-11 22:20:22 -04:00
Steven Fackler
08a163c546
Fix doc link
2019-09-08 16:54:57 -07:00
Steven Fackler
42cf855168
Include the Rust type name in WrongType
2019-09-06 04:37:26 -07:00
Jeb Rosen
98fb1173f5
Make prepare() return a Future that satisfies Send.
2019-09-03 18:44:30 -07:00
Steven Fackler
2a2b76d1b8
Upgrade to tokio alpha.4
2019-08-29 18:10:58 -07:00
Steven Fackler
c026644820
async_await is stable on nightly now
2019-08-21 07:48:36 -04:00
Steven Fackler
aa44090fad
Update futures-preview/tokio
2019-08-18 09:02:21 -04:00
Steven Fackler
92e3d013eb
Update to released tokio
2019-08-10 20:25:12 -07:00
Steven Fackler
3ed4543426
Don't block the reactor on DNS
2019-08-04 19:21:32 -07:00
Steven Fackler
f07ebc7373
Support nested transactions
2019-08-03 18:25:28 -07:00
Steven Fackler
2311ceac41
Cleanup shutdown call
2019-08-03 18:11:22 -07:00
Steven Fackler
f5a8b1de68
Update postgres
2019-08-03 18:09:27 -07:00
Steven Fackler
2a97c20bf2
Clean up old test
2019-08-02 20:31:15 -07:00
Steven Fackler
048e91a57d
Use flush combinator
2019-08-02 20:30:36 -07:00
Steven Fackler
26a17ac4ed
Support portals
2019-08-01 20:43:13 -07:00
Steven Fackler
e4a1ec23a1
Fix impl ordering
2019-08-01 18:44:38 -07:00
Steven Fackler
760039627a
Fix build without the runtime feature
2019-08-01 18:43:38 -07:00
Steven Fackler
785205ffb2
Finish documenting everything
2019-08-01 18:40:14 -07:00
Steven Fackler
5dccb9988a
Test notifications
2019-07-31 21:19:56 -07:00
Steven Fackler
e521e3b0a5
Transaction::copy_out
2019-07-31 20:16:07 -07:00
Steven Fackler
9c178ad816
Support copy_out
2019-07-31 20:15:17 -07:00
Steven Fackler
81bc845bcf
Simplify logic a bit
2019-07-31 19:44:16 -07:00
Steven Fackler
beb509f3f3
rustfmt
2019-07-30 21:29:18 -07:00
Steven Fackler
f45884711f
Support copy_in
2019-07-30 21:25:30 -07:00
Steven Fackler
4afd5235db
Transaction support
2019-07-30 19:54:30 -07:00
Steven Fackler
88399a790c
Cancel query support
2019-07-29 21:36:07 -07:00
Steven Fackler
9d851f6727
Fix doc examples
2019-07-29 18:55:11 -07:00
Steven Fackler
6fac2186ce
Fix Windows build?
2019-07-29 15:17:45 -07:00
Steven Fackler
00ef0bfd84
Use smoke_test for target_session_attrs_ok
2019-07-28 17:50:46 -07:00
Steven Fackler
dea6c3ebc5
Fix target_session_attrs handling
2019-07-28 17:48:32 -07:00
Steven Fackler
9938ffff1a
Test and fix simple_query
2019-07-28 16:34:07 -07:00
Steven Fackler
07e5930ddb
Handle target_session_attrs
2019-07-28 16:02:34 -07:00
Steven Fackler
e77b0fd009
Add simple_query and batch_execute
2019-07-28 15:52:46 -07:00
Steven Fackler
51f02c89ee
Fully working prepare
2019-07-28 09:26:04 -07:00
Steven Fackler
4396f38fcc
Setup socket
2019-07-25 07:21:53 -07:00
Steven Fackler
77caff91ef
Add query/select
2019-07-24 21:28:52 -07:00
Steven Fackler
90eb58dc8e
Some prep for custom type lookup
2019-07-23 20:16:31 -07:00
Steven Fackler
f9e46510ba
Implement prepare
2019-07-23 19:54:22 -07:00
Steven Fackler
2480fefd2c
Connection IO logic
2019-07-22 21:27:21 -07:00
Steven Fackler
32fe52490e
Runtime connect
2019-07-22 20:17:29 -07:00
Steven Fackler
89501f66d9
Start on std::futures rewrite
...
connect_raw works!
2019-07-21 21:44:43 -07:00
Steven Fackler
d91f9d8407
gut tokio-postgres
2019-07-21 16:09:45 -07:00
Steven Fackler
8192c771c0
Add methods that take iterators of parameters
...
The existing methods which take slices of parameters work well when
directly passing a temporary slice (e.g. `c.query(s, &[&15, &"hi"])`,
but becomes limiting in other contexts like when programmatically
building up a query. We now offer methods which take iterators, which
are significantly more flexible for these kinds of use cases.
Because of the weird object safety of `ToSql`, we can't be generic over
`Iterator<Item = impl ToSql>`, but instead have to specifically work
with `Iterator<Item = &dyn ToSql>`. This may require a `.map()` or two
but should still work fine.
Closes #265
2019-07-09 19:00:10 -07:00
Steven Fackler
904c951ad6
Release postgres v0.16.0-rc.2
2019-06-29 21:43:50 -07:00
Steven Fackler
310f0ebfc6
Release tokio-postgres v0.4.0-rc.3
2019-06-29 21:18:28 -07:00
Steven Fackler
47d83d57a0
Release postgres-protocol v0.4.1
2019-06-29 21:06:23 -07:00
Steven Fackler
e760d82f64
Drop tokio- prefix from TLS crates
...
They're way too wordy and used with both tokio-postgres and postgres
anyway.
2019-06-29 16:07:56 -07:00
Steven Fackler
3f264027c9
Fix some typos
2019-06-29 12:32:46 -07:00
Steven Fackler
2d2a5dea81
Send response messages in blocks
...
Our codec implementation originally just parsed single messages out of
the stream buffer. However, if a query returns a bunch of rows, we're
spending a ton of time shipping those individual messages from the
connection back to the Query stream. Instead, collect blocks of unparsed
messages that are as large as possible and send those back.
This cuts the processing time of the following query in half, from ~10
seconds to ~5:
`SELECT s.n, 'name' || s.n FROM generate_series(0, 9999999) AS s(n)`
At this point, almost all of the remainder of the time is spent parsing
the rows.
cc #450
2019-06-27 21:47:13 -07:00