• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

t/H01-Jul-2009-320272

AbstractCount.pmH A D01-Jul-20093.7 KiB15272

ChangesH A D01-Jul-20091.2 KiB3229

MANIFESTH A D11-Jun-2004162 109

META.ymlH A D01-Jul-2009652 2524

Makefile.PLH A D01-Jul-2009646 1714

READMEH A D19-Jun-20051.5 KiB6742

README

1Class/DBI/Plugin/AbstractCount version 0.04
2===========================================
3
4INSTALLATION
5
6To install this module type the following:
7
8  perl Makefile.PL
9  make
10  make test
11  make install
12
13DEPENDENCIES
14
15This module requires these other modules and libraries:
16
17  Class::DBI >= 0.90
18
19SYNOPSIS
20
21  use base 'Class::DBI';
22  use Class::DBI::Plugin::AbstractCount;
23
24  my $count = Music::Vinyl->count_search_where(
25    { artist   => 'Frank Zappa'
26    , title    => { like    => '%Shut Up 'n Play Yer Guitar%' }
27    , released => { between => [ 1980, 1982 ] }
28    });
29
30DESCRIPTION
31
32This Class::DBI plugin combines the functionality from
33Class::DBI::Plugin::CountSearch (counting objects without having to use an
34array or an iterator), and Class::DBI::AbstractSearch, which allows complex
35where-clauses a la SQL::Abstract.
36
37METHODS
38
39  count_search_where
40
41  Takes a hashref with the abstract where-clause. An additional attribute
42  hashref can be passed to influence the default behaviour: arrayrefs are
43  OR'ed, hashrefs are AND'ed.
44
45TODO
46
47More tests, more doc.
48
49SEE ALSO
50
51  SQL::Abstract for details about the where-clause and the attributes.
52  Class::DBI::AbstractSearch
53  Class::DBI::Plugin::CountSearch
54
55AUTHOR
56
57Jean-Christophe Zeus, <mail@jczeus.com> with some help from Tatsuhiko
58Myagawa and Todd Holbrook.
59
60COPYRIGHT AND LICENCE
61
62Copyright (C) 2004 Jean-Christophe Zeus
63
64This library is free software; you can redistribute it and/or modify
65it under the same terms as Perl itself.
66
67