Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: DBIx::Class connectionby ribasushi (Pilgrim) |
on Mar 25, 2013 at 12:03 UTC ( [id://1025274]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|