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 PG::BasicTypeMapForQueries::BinaryData for encoding of bytea columns #348

Merged
merged 1 commit into from
Mar 29, 2021

Conversation

larskanis
Copy link
Collaborator

It has always been easy to register a binary encoder to PG::BasicTypeMapForQueries like so:

  class BinaryData < String; end
  tm[BinaryData] = PG::BinaryEncoder::Bytea.new

However it might be more convenient to add a default class that can be used without registration.

Related to #344

It has always been easy to register a binary encoder to PG::BasicTypeMapForQueries like so:

  class BinaryData < String; end
  tm[BinaryData] = PG::BinaryEncoder::Bytea.new

However it might be more convenient to add a default class that can be used without registration.

Related to ged#344
@larskanis larskanis merged commit ee8a03b into ged:master Mar 29, 2021
@larskanis larskanis deleted the add-binarydata branch March 29, 2021 19: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.

None yet

1 participant