in reply to Abstracting DBI

If there's a question or request in there somewhere, I missed it. What's your point?

I don't know what "Sugar" is, and it's not clear how important it would be for me look that up in order to understand what you're trying to say.

Your first rendering of the "r2h" sub looks remarkably susceptible to injection attacks (or at least prone to crashes due to improper parameters being passed in and not taint-checked). The second "r2h" is even more so. I'd try to look for a less risky way to do whatever you're trying to do.

Replies are listed 'Best First'.
Re^2: Abstracting DBI
by linxdev (Sexton) on Oct 09, 2015 at 12:33 UTC
    What I'm asking is if there are CPAN modules that abstract DBI and allow me to do what I'm trying to do via definitions?

    Sugar is just one database I maintain. I also use SQLite3 DB files and I have a few other systems that we've created that use MySQL. I'm writing CPAN modules for each one and I'm copy and pasting many of the same functions in each module.