Welcome to the Monastery | |
PerlMonks |
Re^3: How can I get a database handler with Mojolicious::Plugin::Databaseby Veltro (Hermit) |
on Apr 03, 2019 at 10:31 UTC ( [id://1232075]=note: print w/replies, xml ) | Need Help?? |
the database handler was found with $c->app->_dbh_db(); The underscore often implies that the developer of the module meant these as 'private' (or internal) functions (and therefor may not be documented). I believe that that is also the case here. I looked at the source and there is definitely a helper created by the name 'db'. Try to use the method from the previous link that I gave you: A Simple Mojolicious/DBI Example
In Section
Seekers of Perl Wisdom
|
|