Commit Graph

4 Commits

Author SHA1 Message Date
Steven Fackler
e5e03b0064 Change the copy_in interface
Rather than taking in a Stream and advancing it internally, return a
Sink that can be advanced by the calling code. This significantly
simplifies encoding logic for things like tokio-postgres-binary-copy.

Similarly, the blocking interface returns a Writer.

Closes 
2019-11-30 11:04:59 -05:00
Steven Fackler
5517719b07 Binary copy out support 2019-11-23 04:45:05 -08:00
Steven Fackler
6e2435eb60 Write full rows in binary copy 2019-11-18 18:06:03 -08:00
Steven Fackler
8ebe859183 Start on binary copy rewrite 2019-11-17 18:28:12 -08:00