Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Using a single database handle or multiple handles

by erix (Prior)
on Oct 11, 2012 at 15:32 UTC ( [id://998480]=note: print w/replies, xml ) Need Help??


in reply to Re: Using a single database handle or multiple handles
in thread Using a single database handle or multiple handles

If your subs comprise transactions and you need to close the connection after each, you would let the sub set up the connection.

This seems a somewhat strange procedure, or construction. Transactions are committed or rolled back by telling the database to COMMIT or ROLLBACK (and dbi can do either), not by closing the connection...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://998480]
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-03-19 11:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found