2015-08-25 17:20 GMT+03:00 Dancer New <[email protected]>: > 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 _______________________________________________ dancer-users mailing list [email protected] http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
