rust-postgres/tokio-postgres
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
..
src Add methods that take iterators of parameters 2019-07-09 19:00:10 -07:00
tests/test Avoid copies in copy_in 2019-06-25 18:54:17 -07:00
Cargo.toml Release tokio-postgres v0.4.0-rc.3 2019-06-29 21:18:28 -07:00
CHANGELOG.md Release postgres v0.16.0-rc.2 2019-06-29 21:43:50 -07:00
LICENSE-APACHE Release tokio-postgres v0.4.0-rc.1 2019-03-05 21:35:46 -08:00
LICENSE-MIT Release tokio-postgres v0.4.0-rc.1 2019-03-05 21:35:46 -08:00