-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for COPY IN protocol (#72)
* Add constants for Describe message types and add a bit more debugging * Remove unused function parameter * handleMessageSizeExceeded doesn't need to be a method of srv * Add failing test and begin work on CopyIn support * Extend NewDataWriter to receive a CopyData function * Extract command loop processing * Rough working version * Rewrite CopyIn() to return an io.Reader, rather than accept an io.Writer * Extend CopyIn to allow specifying the format for each column * Remove extraneous debugging * Move command loop into consumeCommands, so inner function can be stepped through one command at a time * Simplify CopyIn to use io.Reader rather than custom function signature * Remove unused CopyDataFn type * Further simplify handleCopyInCommand * feat: introducing the binary column reader and improved copy reader implementation --------- Co-authored-by: Jeroen Rinzema <[email protected]>
- Loading branch information
1 parent
3c2d029
commit ebab8df
Showing
11 changed files
with
526 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.