|database_connected||Called when a new database connection has been established, after performing any on_connect_do statements, but before the handle is returned. Receives the new database handle as a parameter, so that you can do what you need with it.|
|database_connection_lost||Called when the plugin detects that the database connection has gone away. Receives the no-longer usable handle as a parameter, in case you need to extract some information from it (such as which server it was connected to).|
|database_connection_failed||Called when an attempt to connect to the database fails. Receives a hashref of connection settings as a parameter, containing the settings the plugin was using to connect (as obtained from the config file).|
|database_error||Called when a database error is raised by DBI. Receives two parameters: the error message being returned by DBI, and the database handle in question.|
David Precious, <email@example.com>
This module is developed on Github at:
Feel free to fork the repo and submit pull requests! Also, it makes sense to watch the repo <https://github.com/bigpresh/Dancer-Plugin-Database/toggle_watch> on GitHub for updates.
Feedback and bug reports are always appreciated. Even a quick mail to let me know the module is useful to you would be very nice - its nice to know if code is being actively used.
Christian Sa\k:' |\n:unchez
Martin J Evans
Matt S Trout
James Aitken (LoonyPandora)
Mark Allen (mrallen1)
Sergiy Borodych (bor)
Mario Domgoergen (mdom)
Andrey Inishev (inish777)
Nick S. Knutov (knutov)
Nicolas Franck (nicolasfranck)
Please report any bugs or feature requests to bug-dancer-plugin-database at rt.cpan.org, or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dancer2-Plugin-Database>. I will be notified, and then youll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
You can also look for information at:
You can find the author on IRC in the channel #dancer on <irc.perl.org>.
o RT: CPANs request tracker
o AnnoCPAN: Annotated CPAN documentation o CPAN Ratings o Search CPAN
Copyright 2010-2016 David Precious.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
Dancer::Plugin::Database::Core and Dancer::Plugin::Database::Core::Handle
|perl v5.20.3||DANCER2::PLUGIN::DATABASE (3)||2016-03-30|