[dancer-users] dancer-users Digest, Vol 66, Issue 30

WK wanradt at gmail.com
Tue Aug 25 15:31:09 BST 2015


2015-08-25 17:20 GMT+03:00 Dancer New <dancerfan2015 at 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-database

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


More information about the dancer-users mailing list