rust-postgres/tokio-postgres/src
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
..
error Include the parameter/column index in type conversion errors 2019-05-20 19:05:54 -07:00
proto Add methods that take iterators of parameters 2019-07-09 19:00:10 -07:00
types Fix some typos 2019-06-29 12:32:46 -07:00
config.rs Fix new clippy warnings 2019-04-11 19:51:42 -07:00
impls.rs Avoid copies in copy_in 2019-06-25 18:54:17 -07:00
lib.rs Add methods that take iterators of parameters 2019-07-09 19:00:10 -07:00
row.rs Include the parameter/column index in type conversion errors 2019-05-20 19:05:54 -07:00
socket.rs Finish docs for tokio-postgres 2019-03-04 21:22:50 -08:00
stmt.rs Make internal simple query future a stream 2018-12-27 13:51:39 -05:00
tls.rs Fix serde docs 2019-03-04 21:51:44 -08:00