Skip to content

Configuring row normalization #36

Open

Description

@hrach

Would be nice to have confirugable normalization of database row result.
Currently, it's impossible to add own new normalization (like pgarray?). On the other hand, it's impossible to disable some normalization (like all transforms to datetime/dateinterval, ...)

Activity

  1. hrach commented on Oct 25, 2014

    @hrach
    ContributorAuthor

    Any idea, how api could look? cc @dg

  2. JanTvrdik commented on Oct 25, 2014

    @JanTvrdik
    Contributor

    Does it have to be solved with configuration? Why not just extract to logic from ResultSet to RowNormalizer?

  3. hrach commented on Oct 25, 2014

    @hrach
    ContributorAuthor

    Of course, configuratin means just some API :-) The question, how to inject own RowNormalizer into ResultSet.

  4. JanTvrdik commented on Oct 25, 2014

    @JanTvrdik
    Contributor

    Global service for default normalizer injected by constructor to ResultSet + setter on ResultSet for specific behavior on a single result.

    Regarding current implementation – why is driver-specific normalization called after general normalization and not before?

  5. KacerCZ commented on Apr 1, 2015

    @KacerCZ

    This feature would be great, because sometimes I don't need normalization overhead.
    Workaround I use is ResultSet::getPdoStatement()->fetch().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions