Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Abstracting DBI

by graff (Chancellor)
on Oct 09, 2015 at 00:02 UTC ( [id://1144252]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1144252]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 16:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found