Hello

Maybe I'm asking about quite simple thing, but maybe not.

I've implemented TO_JSON method for both result and resultset. For result, it's basically get_columns with automatic deflate datetime to specified format, for resultset it's calling TO_JSON for every result in set.

Currently I've splitted it to two modules, one to be loaded into Result, one into ResultSet, but is it possible and good practice to make just one component, behaving differently for Result and ResultSet parent?

Or maybe I've just overlooked some good pre-existing module?

--

Alex


_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to