Diggory Blake
Diggory Blake
Sorry yes I should have made that clear. This feature request is to check that at compile time, which is definitely possible given the stabilisation of procedural macros and other...
Another motivation for this is to implement Digest header validation, which is required for HTTP request signing. It's necessary to be able to buffer the request body in memory and...
I just hit this issue while trying to proxy a response with a chunked transfer encoding: the resulting stream was doubly encoded.
Sure - @0x1991babe has [already forked this codebase](https://github.com/0x1991babe/kafka-protocol-rs) and made some improvements https://github.com/0x1991babe/kafka-protocol-rs, so you may want to look at that too.
@blackbeam Thanks for the detailed reply: 1) is impossible since I'm using google's Cloud SQL database, however it did lead me to find `LOAD DATA LOCAL INFILE` which _does_ work....
For reference, I'm inserting ~2 million rows into one table with fairly large rows, and ~10 million rows into another table which is much more lightweight. Currently it takes around...
@0xpr03 I solved this using `LOAD DATA FROM LOCAL INFILE` and then installing a custom handler which streamed the data directly from memory.
@hpca01 there's an example in the documentation: https://docs.rs/mysql/18.0.0/mysql/struct.LocalInfileHandler.html
The trait that's required is `FnMut`. This is implemented automatically by closures, but implementing `FnMut` for your own types is still unstable. I'm not really sure what you hope to...