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::RecordCoder for en/decoding of Composite Types #36

Merged
merged 7 commits into from
Oct 9, 2019

Commits on Oct 4, 2019

  1. Add PG::RowCoder for en/decoding of Composite Types

    This implements proper encoder and decoder for Composite Types
    as described in https://www.postgresql.org/docs/11/rowtypes.html
    and as requested in https://bitbucket.org/ged/ruby-pg/issues/258
    
    This adds the following classes:
    * PG::RowCoder < PG::Coder
    * PG::RowEncoder < PG::RowCoder
    * PG::RowDecoder < PG::RowCoder
    * PG::TextEncoder::Row < PG::RowEncoder
    * PG::TextDecoder::Row < PG::RowDecoder
    
    Fixes ged#258
    larskanis committed Oct 4, 2019
    Configuration menu
    Copy the full SHA
    c13fb88 View commit details
    Browse the repository at this point in the history
  2. Rename coder for composite types from Row to Record

    I think this makes the purpose of the en/decoder more clear and distances from CopyRow coders.
    
    So this renames the classes to these:
    * PG::RecordCoder < PG::Coder
    * PG::RecordEncoder < PG::RecordCoder
    * PG::RecordDecoder < PG::RecordCoder
    * PG::TextEncoder::Record < PG::RecordEncoder
    * PG::TextDecoder::Record < PG::RecordDecoder
    larskanis committed Oct 4, 2019
    Configuration menu
    Copy the full SHA
    c8e6ef8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bb0875a View commit details
    Browse the repository at this point in the history
  4. Add different ways to interpret Array params to BasicTypeMapForQueries

    ... and add documentation to record encoder and decoder.
    larskanis committed Oct 4, 2019
    Configuration menu
    Copy the full SHA
    e629ef6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6756943 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2019

  1. Configuration menu
    Copy the full SHA
    e18fd57 View commit details
    Browse the repository at this point in the history
  2. Make init_encoders private

    It is internal only.
    larskanis committed Oct 5, 2019
    Configuration menu
    Copy the full SHA
    8acf8fd View commit details
    Browse the repository at this point in the history