good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: How can I get a database handler with Mojolicious::Plugin::Databaseby frazap (Monk) |
on Apr 03, 2019 at 09:11 UTC ( [id://1232069]=note: print w/replies, xml ) | Need Help?? |
Hi Veltro
Thanks for the suggestion. Eventually, the database handler was found with $c->app->_dbh_db(); Strange that the doc of the module does not describe this... I'm that code, which works
Now, I would prefer to have my statements prepared as the start of the application, one time after the connection is made, not at each page displayed. What's the best way to do this? frazap
In Section
Seekers of Perl Wisdom
|
|