May 26, 2018
Easy database connections for Dancer2 applications
Dancer2PluginDatabase provides an easy way to obtain a connected DBI database handle by simply calling the database keyword within your Dancer2 application.
Returns a Dancer2PluginDatabaseHandle object, which is a subclass of DBI’s DBIdb connection handle object, so it does everything you’d expect to do with DBI, but also adds a few convenience methods. See the documentation for Dancer2PluginDatabaseHandle for full details of those.