Commit Graph

14 Commits

Author SHA1 Message Date
Steven Fackler
12c2ef79b6 Upgrade to tokio 0.2/futures 0.3 2019-11-26 16:32:36 -08:00
Steven Fackler
f07ebc7373 Support nested transactions 2019-08-03 18:25:28 -07:00
Steven Fackler
f5a8b1de68 Update postgres 2019-08-03 18:09:27 -07:00
Steven Fackler
2a80118e87 Don't require use of iterators
The common case is to simply want a vec of rows to work with, so make
that the main API, wrapping the old version returning an iterator.
2019-03-10 17:27:28 -07:00
Steven Fackler
32e09dbb91 Change batch_execute into simple_query
Closes #413
2019-01-31 20:35:17 -08:00
Steven Fackler
e57a2976e9 Fix clippy 2019-01-29 19:40:49 -08:00
Steven Fackler
df84dd8fd0 Add convenience to_vec methods to fallible iterators
The very common case is to simply collect these to a vector, and this
lets people avoid having to import FallibleIterator.
2019-01-29 19:29:33 -08:00
Steven Fackler
5169820d6a Return iterators from query in sync API 2018-12-28 20:39:32 -08:00
Steven Fackler
919fa52a5e Add bind and query_portal to sync API 2018-12-28 16:05:05 -05:00
Steven Fackler
ec680b1e0e Avoid NLL letting CopyOutReader borrow drop early 2018-12-23 13:28:13 -08:00
Steven Fackler
793c5f1b87 Add sync copy_out 2018-12-23 13:17:50 -08:00
Steven Fackler
7eaac1cb1a Sync copy_in support 2018-12-22 21:42:03 -08:00
Steven Fackler
0d3e18b251 Support nested transactions in sync API 2018-12-22 13:38:35 -08:00
Steven Fackler
633e87aefc Add basic sync API tests 2018-12-21 21:01:49 -08:00