File: README

package info (click to toggle)
libclass-dbi-plugin-abstractcount-perl 0.08-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 88 kB
  • sloc: perl: 340; makefile: 2
file content (66 lines) | stat: -rw-r--r-- 1,491 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Class/DBI/Plugin/AbstractCount version 0.04
===========================================

INSTALLATION

To install this module type the following:

  perl Makefile.PL
  make
  make test
  make install

DEPENDENCIES

This module requires these other modules and libraries:

  Class::DBI >= 0.90

SYNOPSIS

  use base 'Class::DBI';
  use Class::DBI::Plugin::AbstractCount;

  my $count = Music::Vinyl->count_search_where(
    { artist   => 'Frank Zappa'
    , title    => { like    => '%Shut Up 'n Play Yer Guitar%' }
    , released => { between => [ 1980, 1982 ] }
    });

DESCRIPTION

This Class::DBI plugin combines the functionality from
Class::DBI::Plugin::CountSearch (counting objects without having to use an
array or an iterator), and Class::DBI::AbstractSearch, which allows complex
where-clauses a la SQL::Abstract.

METHODS

  count_search_where

  Takes a hashref with the abstract where-clause. An additional attribute
  hashref can be passed to influence the default behaviour: arrayrefs are
  OR'ed, hashrefs are AND'ed.

TODO

More tests, more doc.

SEE ALSO

  SQL::Abstract for details about the where-clause and the attributes.
  Class::DBI::AbstractSearch
  Class::DBI::Plugin::CountSearch

AUTHOR

Jean-Christophe Zeus, <mail@jczeus.com> with some help from Tatsuhiko
Myagawa and Todd Holbrook.

COPYRIGHT AND LICENCE

Copyright (C) 2004 Jean-Christophe Zeus

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.