Well, that sentence was mostly a disclaimer, because sometimes you find these great modules that turn out to be not so great once you try them in anger. I haven’t had such problems with DBIx::Simple – it turned out to be just as nice to use as expected.
There is just one monkeypatch in my code that I’d like to see as part of the module itself:
sub DBIx::Simple::Result::hash_array { scalar shift->hashes( @_ ) }
This isn’t for any fault of DBIx::Simple’s, it’s just because of the fact that method calls in Template Toolkit are always in list context. DBIx::Class added a scalar-context-only variant of its search method called search_rs to deal with the same problem.
Makeshifts last the longest. |