25 Aug
2015
25 Aug
'15
2:31 p.m.
2015-08-25 17:20 GMT+03:00 Dancer New <dancerfan2015@gmail.com>:
I would like to know how to make one db connection and use it in all requests. where to store the database handler?
There are examples for using database in Dancer Tutorial: https://metacpan.org/pod/distribution/Dancer/lib/Dancer/Tutorial.pod#The-dat... Anyway, it suggest also to use Dancer::Plugin::Database for simpler use: https://metacpan.org/pod/Dancer::Plugin::Database I also use DBIx::Connector to create connections: https://metacpan.org/pod/DBIx::Connector Wbr, -- Kõike hääd, Gunnar