Compare commits
10 Commits
83673498fc
...
e86e508cf2
Author | SHA256 | Date | |
---|---|---|---|
e86e508cf2 | |||
5402ea5c96 | |||
bd29b7b210 | |||
|
b6f3df084c | ||
|
e34f594cd8 | ||
|
229bffc91d | ||
|
3ff6eb6e4c | ||
|
4c0adefa50 | ||
|
a1b8dfab7d | ||
|
aa1df952f2 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0dc66c9e67912fa0381ec36c505129a3ccd250b9b54025965ba4d93128fa8c79
|
||||
size 5352
|
3
Dancer-Plugin-Database-2.13.tar.gz
Normal file
3
Dancer-Plugin-Database-2.13.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8c72371cb07093725e4bee7b3100030e7414cfa97a9655abd1a975866cf825f2
|
||||
size 19428
|
20
cpanspec.yml
Normal file
20
cpanspec.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
#patches:
|
||||
# foo.patch: -p1
|
||||
# bar.patch:
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
#skip_noarch: 1
|
||||
#custom_build: -
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
@@ -1,3 +1,269 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 15 05:12:15 UTC 2016 - coolo@suse.com
|
||||
|
||||
- updated to 2.13
|
||||
see /usr/share/doc/packages/perl-Dancer-Plugin-Database/Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 14 05:13:20 UTC 2016 - coolo@suse.com
|
||||
|
||||
- updated to 2.13
|
||||
see /usr/share/doc/packages/perl-Dancer-Plugin-Database/Changes
|
||||
|
||||
2.13 2016-08-13
|
||||
[ BUG FIXES ]
|
||||
- Require 0.16 of core library, as 0.15 had a bug in :(
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 27 09:49:18 UTC 2016 - coolo@suse.com
|
||||
|
||||
- updated to 2.12
|
||||
see /usr/share/doc/packages/perl-Dancer-Plugin-Database/Changes
|
||||
|
||||
2.12 2016-01-24
|
||||
|
||||
[ BUG FIXES ]
|
||||
- skip author tests (thanks to Stefan Hornburg)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 3 08:34:23 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 2.11
|
||||
see /usr/share/doc/packages/perl-Dancer-Plugin-Database/Changes
|
||||
|
||||
2.11 2015-10-02
|
||||
[ BUG FIXES ]
|
||||
- Require Dancer::Plugin::Database::Core v0.12, that
|
||||
fixes logging problems
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 17 16:55:18 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 2.10
|
||||
see /usr/share/doc/packages/perl-Dancer-Plugin-Database/Changes
|
||||
|
||||
2.10 2014-10-13
|
||||
[ ENHANCEMENTS ]
|
||||
- Support dsn_extra option (Thanks to Michael J South)
|
||||
|
||||
2.09 2013-12-22
|
||||
[ ENHANCEMENTS ]
|
||||
- Tests for cached handle after reconnection
|
||||
|
||||
2.08 Sun Sep 1 13:52:52 WEST 2013
|
||||
[ ENHANCEMENTS ]
|
||||
- Add quick_count method (Thanks to Colin Ewen)
|
||||
|
||||
2.07 Tue Jul 30 18:59:30 WEST 2013
|
||||
- Fix test with wrong base class (part 2)
|
||||
|
||||
2.06 Tue Jul 30 18:49:37 WEST 2013
|
||||
- Fix test with wrong base class.
|
||||
|
||||
2.05 2013-07-29
|
||||
- Remove code from module to share with Dancer2 plugin.
|
||||
- Added dependency on Dancer::Plugin::Database::Core
|
||||
|
||||
2.04 2013-03-04
|
||||
[ ENHANCEMENTS ]
|
||||
- Allow 'sid' to be passed into DSN, for Oracle support.
|
||||
|
||||
2.03 2012-12-14
|
||||
[ BUGFIX ]
|
||||
- Remove left-over debugging warning (thanks to ofosos for reporting)
|
||||
|
||||
2.02 2012-12-07
|
||||
[ ENHANCEMENTS ]
|
||||
- If asked for default connection (no connection name given) but there
|
||||
is no default connection configured, throw a more helpful error
|
||||
message.
|
||||
|
||||
2.01 2012-09-18
|
||||
[ BUGFIX ]
|
||||
- Fix crashing bug when charset: UTF-8 is present - thanks to Hugh
|
||||
Gallagher for reporting & providing fix in RT #79719.
|
||||
Presumably the test suite doesn't set UTF-8, so this failure never
|
||||
showed up in testing :(
|
||||
|
||||
2.00 2012-09-17
|
||||
[ ENHANCEMENTS ]
|
||||
- Support for Dancer 2
|
||||
- Automatic quoting handles e.g. schema.table properly - GH #33,
|
||||
thanks to mscolly for reporting
|
||||
- Accept limit offset,count syntax too - GH #31, thanks to nicolasfranck
|
||||
for reporting
|
||||
- a value of 0 for connectivity_check_threshold now disables checking
|
||||
entirely - thanks to knutov in GH #22
|
||||
|
||||
1.82 2012-06-28
|
||||
[ BUGFIXES ]
|
||||
- Fix for Debian RT #665221 :
|
||||
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665221 - avoid issues
|
||||
if we get a hashref of settings occupying the same region of memory as a
|
||||
previous hashref of settings which since went out of scope but which we
|
||||
still have a handle laying around for.
|
||||
|
||||
1.81 2012-03-07
|
||||
[ BUGFIXES ]
|
||||
- Don't generate invalid SQL with certain uses of where and order_by
|
||||
clauses together (PR-27, thanks to Michael Stapelberg (mstap))
|
||||
|
||||
1.80 2012-02-06
|
||||
[ ENHANCEMENTS]
|
||||
- New hooks 'database_error', 'database_connect_failed',
|
||||
'database_connection_lost'
|
||||
- New option 'handle_class' to allow the database handles to be
|
||||
reblessed into an alternative class, allowing you to subclass
|
||||
D::P::D::Handle if you want to extend it
|
||||
All requested by Nick S. Knutov - thanks Nick!
|
||||
|
||||
1.70 2012-01-31
|
||||
[ ENHANCEMENTS ]
|
||||
- New `order_by`, `limit` and `columns` options for quick_select()
|
||||
(Requested by bor in GH-20)
|
||||
|
||||
1.60 2011-12-29
|
||||
[ ENHANCEMENTS ]
|
||||
- Hook support, requested by mdom. Currently supports a
|
||||
database_connected hook position; others may be added in future.
|
||||
|
||||
Happy New Year!
|
||||
|
||||
1.51 2011-11-17
|
||||
[ BUGFIXES ]
|
||||
- Handle "is" operator properly (particularly if negated) - Issue 15.
|
||||
- Add =encoding utf8 to POD so contributor names render correctly on
|
||||
search.cpan.org / metacpan.org
|
||||
|
||||
1.50 2011-10-18
|
||||
All new features kindly contributed by Mark Allen (@mrallen1) - thanks!
|
||||
- Much more flexible WHERE clauses - e.g. { foo => { like => 'bar'} }
|
||||
- Ability to select only specific columns in quick_select()
|
||||
- New quick_lookup() syntactic sugar method
|
||||
|
||||
1.42 2011-08-19
|
||||
- Don't produce spurious messages about enabling UTF-8 support when
|
||||
we have already done it (PR 9 from James Aitken (LoonyPandora))
|
||||
|
||||
1.41 2011-07-24
|
||||
- support where clauses with undef values. (Alberto Simões)
|
||||
|
||||
1.40 2011-05-29
|
||||
- Be fork/thread-safe - don't allow processes/threads to share handles.
|
||||
Thanks to Matt S Trout for pointing this out on IRC - cheers mst.
|
||||
- If we're given a pre-assembled DSN, extract the driver from it to
|
||||
avoid a warning, and to allow auto UTF-8 to work.
|
||||
Thanks to Matthew Vickers (mvickers) for bringing this up.
|
||||
|
||||
1.30 2011-05-23
|
||||
- Allow passing an empty hashref for where clause to signify that no
|
||||
where clause is desired (i.e. return all rows).
|
||||
Requested by Carlos Sosa (gnusosa) - thanks!
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 17 16:55:17 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 1.50
|
||||
see /usr/share/doc/packages/perl-Dancer-Plugin-Database/Changes
|
||||
|
||||
1.50 2011-10-18
|
||||
All new features kindly contributed by Mark Allen (@mrallen1) - thanks!
|
||||
- Much more flexible WHERE clauses - e.g. { foo => { like => 'bar'} }
|
||||
- Ability to select only specific columns in quick_select()
|
||||
- New quick_lookup() syntactic sugar method
|
||||
|
||||
1.42 2011-08-19
|
||||
- Don't produce spurious messages about enabling UTF-8 support when
|
||||
we have already done it (PR 9 from James Aitken (LoonyPandora))
|
||||
|
||||
1.41 2011-07-24
|
||||
- support where clauses with undef values. (Alberto Simões)
|
||||
|
||||
1.40 2011-05-29
|
||||
- Be fork/thread-safe - don't allow processes/threads to share handles.
|
||||
Thanks to Matt S Trout for pointing this out on IRC - cheers mst.
|
||||
- If we're given a pre-assembled DSN, extract the driver from it to
|
||||
avoid a warning, and to allow auto UTF-8 to work.
|
||||
Thanks to Matthew Vickers (mvickers) for bringing this up.
|
||||
|
||||
1.30 2011-05-23
|
||||
- Allow passing an empty hashref for where clause to signify that no
|
||||
where clause is desired (i.e. return all rows).
|
||||
Requested by Carlos Sosa (gnusosa) - thanks!
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 11 14:46:15 UTC 2011 - dbahi@novell.com
|
||||
|
||||
- release 1.24
|
||||
- Bugfixes in logging. Avoid DBI swallowing up the param wrongly named,
|
||||
and avoid warnings if any params are undef.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 15 12:00:00 UTC 2011 - davidp@preshweb.co.uk
|
||||
|
||||
- release 1.23
|
||||
- Only log queries generated by quick_*() helpers in D::P::D::Handle if
|
||||
the log_queries setting was enabled in the configuration. This avoids
|
||||
the potential for the user to be unwittingly logging sensitive
|
||||
information, and would provide a (tiny) performance boost too.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 11 12:00:00 UTC 2011 - davidp@preshweb.co.uk
|
||||
|
||||
- release 1.22
|
||||
- Bugfix: don't needlessly use to_json() in tests, as Dancer doesn't
|
||||
depend on JSON.pm, so tests will fail if it's not available.
|
||||
Reported in RT #66204 by Johnathan (JAWNSY) - thanks!
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 6 12:00:00 UTC 2011 - davidp@preshweb.co.uk
|
||||
|
||||
- release 1.21
|
||||
- Bugfix: return undef if connection fails, rather than attempting to
|
||||
re-bless and blowing up. Fixes GH-7, thanks to Nick Hibma
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 23 12:00:00 UTC 2011 - davidp@preshweb.co.uk
|
||||
|
||||
- release 1.20
|
||||
- New feature - automatically enable UTF-8 support if the app's charset
|
||||
setting is set to 'UTF-8' and we know how to enable UTF-8 support for
|
||||
the database driver in use. This can be disabled with the new
|
||||
auto_utf8 setting in the plugin's config.
|
||||
- Bugfix - create test DB in memory, not a file named ":memory" by
|
||||
accident. This should fix test failures on Windows, e.g.:
|
||||
http://www.cpantesters.org/cpan/report/d5987aa6-6d07-1014-91a2-7f5be4275be9
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 18 12:00:00 UTC 2011 - davidp@preshweb.co.uk
|
||||
|
||||
- release 1.11
|
||||
- Fix bug RT #65825 - quick_select didn't actually use the where clause
|
||||
correctly.
|
||||
- Extended test suite.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 11 12:00:00 UTC 2011 - davidp@preshweb.co.uk
|
||||
|
||||
- release 1.10
|
||||
- New feature quick_select
|
||||
- Fix bug RT #65651, quick_insert generating SQL which MySQL/Postgres
|
||||
didn't accept due to use of quote() rather than quote_identifier(),
|
||||
thanks to Christian Sánchez and Michael Stiller
|
||||
- Fix GH #5 - named connections not working properly - thanks to
|
||||
"crayon"
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 19 18:43:08 UTC 2011 - dbahi@novell.com
|
||||
|
||||
- update to 1.00 release
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 7 15:12:11 UTC 2010 - dbahi@novell.com
|
||||
|
||||
- update to 0.12
|
||||
- add BuildRequires for broader test coverage
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 1 13:31:27 UTC 2010 - coolo@novell.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Dancer-Plugin-Database (Version 0.08)
|
||||
# spec file for package perl-Dancer-Plugin-Database
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,59 +12,72 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
Name: perl-Dancer-Plugin-Database
|
||||
%define cpan_name Dancer-Plugin-Database
|
||||
Name: perl-Dancer-Plugin-Database
|
||||
Version: 2.130.0
|
||||
Release: 0
|
||||
# 2.13 -> normalize -> 2.130.0
|
||||
%define cpan_version 2.13
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Easy database connections for Dancer applications
|
||||
Version: 0.08
|
||||
Release: 1
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Dancer-Plugin-Database/
|
||||
#Source: http://www.cpan.org/authors/id/B/BI/BIGPRESH/Dancer-Plugin-Database-%{version}.tar.gz
|
||||
Source: %{cpan_name}-%{version}.tar.bz2
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/B/BI/BIGPRESH/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{perl_requires}
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Dancer) >= 1.175
|
||||
BuildRequires: perl(DBI)
|
||||
Requires: perl(Dancer) >= 1.175
|
||||
Requires: perl(DBI)
|
||||
BuildRequires: perl(Dancer) >= 1.309.900
|
||||
BuildRequires: perl(Dancer::Plugin::Database::Core) >= 0.160
|
||||
Requires: perl(Dancer) >= 1.309.900
|
||||
Requires: perl(Dancer::Plugin::Database::Core) >= 0.160
|
||||
Provides: perl(Dancer::Plugin::Database) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
Provides an easy way to obtain a connected DBI database handle by simply
|
||||
calling the database keyword within your Dancer application.
|
||||
calling the database keyword within your Dancer application
|
||||
|
||||
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. See
|
||||
the documentation for Dancer::Plugin::Database::Core::Handle for full
|
||||
details of those.
|
||||
|
||||
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. (Thanks to Matt
|
||||
S Trout for pointing out the previous lack of thread safety. Inspiration
|
||||
was drawn from DBIx::Connector.)
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
%make_build
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
make test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
# do not perl_process_packlist (noarch)
|
||||
# remove .packlist file
|
||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
||||
# remove perllocal.pod file
|
||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes README
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user