http://www.perlmonks.org?node_id=880093

morgon has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

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!