bigpresh / Dancer-Plugin-Database

Dancer::Plugin::Database - easy database support for Dancer applications
http://search.cpan.org/dist/Dancer-Plugin-Database
37 stars 36 forks source link

Hooks for connections or reconnection #19

Closed mdom closed 12 years ago

mdom commented 12 years ago

It would be extremly helpful to call some perl code on the database handle every time the database connection is reestrablished.

bigpresh commented 12 years ago

Ooh - just looked back through the issues and saw this one, I'd have sworn I closed it before.

Anyway, there's hook support for a database_connected hook, added in 1.60.

https://metacpan.org/module/Dancer::Plugin::Database#HOOKS

I know I'd told you about it already, but thought I should update this issue in case anyone else searches issues for it :)