Configuring row normalization
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, ...)
Any idea, how api could look? cc @dg
Does it have to be solved with configuration? Why not just extract to logic from ResultSet to RowNormalizer?
Of course, configuratin means just some API :-) The question, how to inject own RowNormalizer into ResultSet.
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?
This feature would be great, because sometimes I don't need normalization overhead.
Workaround I use is ResultSet::getPdoStatement()->fetch().