You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
hrach commentedon Oct 25, 2014
Any idea, how api could look? cc @dg
JanTvrdik commentedon Oct 25, 2014
Does it have to be solved with configuration? Why not just extract to logic from
ResultSettoRowNormalizer?hrach commentedon Oct 25, 2014
Of course, configuratin means just some API :-) The question, how to inject own RowNormalizer into ResultSet.
JanTvrdik commentedon Oct 25, 2014
Global service for default normalizer injected by constructor to
ResultSet+ setter onResultSetfor specific behavior on a single result.Regarding current implementation – why is driver-specific normalization called after general normalization and not before?
KacerCZ commentedon Apr 1, 2015
This feature would be great, because sometimes I don't need normalization overhead.
Workaround I use is
ResultSet::getPdoStatement()->fetch().