I added a @FoldWith annotation that adds support for folding the ResultSet of the @SqlQuery annotation on sql object interfaces.
Add annotation to register Folder2 implementations
cleanup code and make IllegalStateException clearer when the TypedFol…
…der2 can't be instantiated
Too bad this is not compatible with query parameters, the query gets executed before the parameters are bound. I'm trying to figure out a way to have both such folding and query bindings, but not luck so far.
I think this is now implemented more generally with Java 8 Collectors in #199, so I'm going to close this. It'll be in Jdbi 3. Let me know if you have renewed interest in picking this up, or if it is actually not the same feature.