Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: DBIx::Simple

by mpeppler (Vicar)
on Mar 28, 2002 at 18:17 UTC ( [id://155060]=note: print w/replies, xml ) Need Help??


in reply to DBIx::Simple

Nicely done.

However, I think one drawback is that there is no way to re-execute a previously prepared query. Depending on the situation this can be a serious issue.

Update

Kanji asked me to elaborate...
The query method above always calls prepare. There doesn't seem to be any way to execute the same query with different parameters without prepare getting called. In DBI I can do:

$sth = $dbh->prepare(q(update foo set bar = ? where quux = ?)); $sth->execute('one', 'two'); $sth->execute('three', 'four'); ...

Depending on the complexity of the query the prepare step can be very expensive...

Michael

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-19 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found