debian/0000755000000000000000000000000012217561672007177 5ustar debian/rules0000755000000000000000000000003612217561672010256 0ustar #!/usr/bin/make -f %: dh $@ debian/control0000644000000000000000000000405712217561672010610 0ustar Source: libdancer2-plugin-database-perl Maintainer: Debian Perl Group Uploaders: gregor herrmann Section: perl Priority: optional Build-Depends: debhelper (>= 8) Build-Depends-Indep: libdancer-plugin-database-core-perl, libdancer2-perl, libdbd-sqlite3-perl, libtest-pod-perl, libtest-pod-coverage-perl, perl Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libdancer2-plugin-database-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libdancer2-plugin-database-perl.git Homepage: https://metacpan.org/release/Dancer2-Plugin-Database Package: libdancer2-plugin-database-perl Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, libdancer-plugin-database-core-perl, libdancer2-perl Description: module for easy database connections for Dancer2 applications Dancer2::Plugin::Database Provides an easy way to obtain a connected DBI database handle by simply calling the database keyword within your Dancer2 application . The module returns a Dancer::Plugin::Database::Core::Handle object, which is a subclass of DBI's `DBI::db' connection handle object, so it does everything you'd expect to do with DBI, but also adds a few convenience methods. . It takes care of ensuring that the database handle is still connected and valid. If the handle was last asked for more than `connection_check_threshold' seconds ago, it will check that the connection is still alive, using either the `$dbh->ping' method if the DBD driver supports it, or performing a simple no-op query against the database if not. If the connection has gone away, a new connection will be obtained and returned. This avoids any problems for a long-running script where the connection to the database might go away. . Care is taken that handles are not shared across processes/threads, so this should be thread-safe with no issues with transactions etc. debian/source/0000755000000000000000000000000012217561672010477 5ustar debian/source/format0000644000000000000000000000001412217561672011705 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000026112217561672011050 0ustar libdancer2-plugin-database-perl (2.10-1) unstable; urgency=low * Initial release (closes: #724036). -- gregor herrmann Sun, 22 Sep 2013 14:33:57 +0200 debian/compat0000644000000000000000000000000212217561672010375 0ustar 8 debian/copyright0000644000000000000000000000210512217561672011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: https://metacpan.org/release/Dancer2-Plugin-Database Upstream-Contact: David Precious Upstream-Name: Dancer2-Plugin-Database Files: * Copyright: 2010-2013, David Precious License: Artistic or GPL-1+ Files: debian/* Copyright: 2013, gregor herrmann License: Artistic or GPL-1+ License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. debian/watch0000644000000000000000000000021312217561672010224 0ustar version=3 https://metacpan.org/release/Dancer2-Plugin-Database .*/Dancer2-Plugin-Database-v?(\d[\d.-]*)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$