Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add binary COPY encoders and decoders and binary timestamp encoders #511

Merged
merged 13 commits into from
Mar 24, 2023

Conversation

larskanis
Copy link
Collaborator

@larskanis larskanis commented Mar 21, 2023

To be useful more binary encoders are desirable. This is why they are added as well.

  • Add COPY encoder
  • Add COPY decoder
  • Add timestamp encoder
  • Add float encoder
  • Add numeric encoder (not done now -> something for later)
  • Add tests for invalid data to be decoded (and that it doesn't segfault)
  • Add special case of "Infinity" to timestamp encoder

It is useful for COPY and not deprecated in that context.
* PG::BinaryEncoder::TimestampUtc
* PG::BinaryEncoder::TimestampLocal
* PG::BinaryEncoder::Timestamp
And enable text format in addition to binary in specs for comparison.
@larskanis larskanis merged commit c83e7fe into ged:master Mar 24, 2023
@larskanis larskanis deleted the binary-copy branch March 24, 2023 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant