Mageia.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary Mageia/Module.pm »
1 #
2 # This file is part of ORDB-CPAN-Mageia
3 #
4 # This software is copyright (c) 2012 by Jerome Quelin.
5 #
6 # This is free software; you can redistribute it and/or modify it under
7 # the same terms as the Perl 5 programming language system itself.
8 #
9 1 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 package ORDB::CPAN::Mageia;
14 {
15 1 $ORDB::CPAN::Mageia::VERSION = '1.121690';
16 }
17 # ABSTRACT: an ORM for CPAN packages available in Mageia
18  
19 1 ▶use ORLite::Mirror {
Subroutine BEGIN: called CC=1 SCAR=0.0
20 1 url => 'http://perl.mageia.org/cpan_Mageia.db',
21 maxage => 24 * 60 * 60,
22 1 };
23  
24  
25 1 1;
26  
27  
28 =pod
29  
30 =head1 NAME
31  
32 ORDB::CPAN::Mageia - an ORM for CPAN packages available in Mageia
33  
34 =head1 VERSION
35  
36 version 1.121690
37  
38 =head1 SYNOPSIS
39  
40 use ORDB::CPAN::Mageia;
41 my $nbmodules = ORDB::CPAN::Mageia::Module->count;
42 my $cpandists = ORDB::CPAN::Mageia->selectcol_arrayref(
43 'SELECT DISTINCT dist FROM module ORDER BY dist'
44 );
45  
46 =head1 DESCRIPTION
47  
48 This module is an easy way to fetch a database listing all Perl modules
49 & distributions packaged within Mageia Linux distribution.
50  
51 When using it, it will automatically & silently download it from the
52 original source and copy it in a local directory, letting you focus on
53 what you want with the data itself.
54  
55 Check the F<examples> directory for some ideas on how to use it.
56  
57 =for Pod::Coverage dsn
58 dbh
59 connect(ed)?
60 begin
61 do
62 iterate
63 orlite
64 pragma
65 prepare
66 rollback(_begin)?
67 select(all|col|row)_.*
68 sqlite
69  
70 =head1 METHODS
71  
72 Refere to L<ORLite> module, section B<ROOT PACKAGE METHODS>.
73  
74 =head1 SEE ALSO
75  
76 You can find more information on this module at:
77  
78 =over 4
79  
80 =item * Search CPAN
81  
82 L<http://search.cpan.org/dist/ORDB-CPAN-Mageia>
83  
84 =item * See open / report bugs
85  
86 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=ORDB-CPAN-Mageia>
87  
88 =item * Git repository
89  
90 L<http://github.com/jquelin/ordb-cpan-mageia>
91  
92 =item * AnnoCPAN: Annotated CPAN documentation
93  
94 L<http://annocpan.org/dist/ORDB-CPAN-Mageia>
95  
96 =item * CPAN Ratings
97  
98 L<http://cpanratings.perl.org/d/ORDB-CPAN-Mageia>
99  
100 =back
101  
102 =head1 AUTHOR
103  
104 Jerome Quelin
105  
106 =head1 COPYRIGHT AND LICENSE
107  
108 This software is copyright (c) 2012 by Jerome Quelin.
109  
110 This is free software; you can redistribute it and/or modify it under
111 the same terms as the Perl 5 programming language system itself.
112  
113 =cut
114  
115  
116 __END__
↑ Summary Mageia/Module.pm »