Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: DBI::Pretty

by DrZaius (Monk)
on Jul 01, 2001 at 23:54 UTC ( [id://93058]=note: print w/replies, xml ) Need Help??


in reply to DBIx::Pretty (was DBI::Pretty)

I'd add one thing to your module: the ability to use different sources for your SQL queries.

For example, when doing a web site where I work, we create an sql directory next to the web root. The queries all go into individual files with a .sql extension. We have perl module similar to yours but it doesn't take the DBI object, so you end up with calls like this:

my $sth = $dbi->prepare($sql->customer_update);
Now, this doesn't work too well for utility scripts as it is hard to define a central location for sql queries. I would recommend developing a way to store sql queries in the DATA block as well.

Just some thoughts.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-20 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found