morgon has asked for the wisdom of the Perl Monks concerning the following question:
a quick DBIx::Class question:
MySchemaClass->connect(...) does not immediately connect to the database, but this seems to be done in a "lazy" way, not before a connection is really needed.
I would now like to create a log-message when the physical connection to the database is established, so I wonder how to register a callback with DBIx::Class to get notified when it connects.
Is that possible?
Many thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBIx::Class connection
by Your Mother (Archbishop) on Jan 02, 2011 at 23:46 UTC | |
by tinita (Parson) on Jan 03, 2011 at 01:11 UTC | |
by morgon (Priest) on Jan 03, 2011 at 01:22 UTC | |
by Your Mother (Archbishop) on Jan 03, 2011 at 03:26 UTC | |
by ribasushi (Pilgrim) on Mar 25, 2013 at 12:05 UTC | |
|
Re: DBIx::Class connection
by Khen1950fx (Canon) on Jan 03, 2011 at 09:16 UTC | |
by Anonymous Monk on Mar 24, 2013 at 21:55 UTC | |
|
Re: DBIx::Class connection
by ribasushi (Pilgrim) on Mar 25, 2013 at 12:03 UTC |