Quick update on a side project I started after comments on a previous blog. Work of some sort progresses on Catalyst-ActionRole-BuildDBICResult, which is now passing basic tests as well as has all the main test libs and so forth in place. The actual code is a bit hacky and has lots of room for refactoring but as of the last push it actually does the basic job of matching a DBIC resultset against a find condition, etc. You can take a look at test cases:
For examples, or see the controller:
As I start to think about the ugly bits I want to refactor the one part that really jumps out is the how I generate a find condition from configuration against a given DBIC resultset. Now that I think about it, I don't think it would be killer hard to break that bit out into a pluggable condition generator that would work for some of the other common ORMs used by Catalyst developers, such as Rose, Fey, etc. If other people who use those systems are interested I can do my side, which is allow the functionality but I personally don't have time or experience to write test cases, etc. Is the effort worth it? I'd probably default to DBIC for the first release, since that's what I use and I have tests in place for it, but if anyone with interest and experience wants to kick in I'd love to hear about it.
If I do make this change I guess I'll need to change the namespace as well. I'm thinking:
Stuff like that. I suck at names, thought greatly appreciated.