Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: DBIx::Class connection

by ribasushi (Monk)
on Mar 25, 2013 at 12:03 UTC ( #1025274=note: print w/ replies, xml ) Need Help??


in reply to DBIx::Class connection

Your answer is as simple as using the on_connect_do connection attribute

Some real-life examples from the test suite

Also note that you can force a connection to happen early via ensure_connected . This is sensible in case you need to check the login credentials early.

Cheers


Comment on Re: DBIx::Class connection

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2015-07-06 15:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (77 votes), past polls