line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# ABSTRACT: Common queries for Packages |
2
|
|
|
|
|
|
|
|
3
|
54
|
|
|
54
|
|
65777
|
use utf8; |
|
54
|
|
|
|
|
127
|
|
|
54
|
|
|
|
|
379
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Pinto::Schema::ResultSet::Package; |
6
|
|
|
|
|
|
|
|
7
|
54
|
|
|
54
|
|
2355
|
use strict; |
|
54
|
|
|
|
|
130
|
|
|
54
|
|
|
|
|
1165
|
|
8
|
54
|
|
|
54
|
|
264
|
use warnings; |
|
54
|
|
|
|
|
114
|
|
|
54
|
|
|
|
|
1766
|
|
9
|
|
|
|
|
|
|
|
10
|
54
|
|
|
54
|
|
336
|
use base 'DBIx::Class::ResultSet'; |
|
54
|
|
|
|
|
114
|
|
|
54
|
|
|
|
|
7904
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
#------------------------------------------------------------------------------ |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '0.14'; # VERSION |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
#------------------------------------------------------------------------------ |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub with_distribution { |
19
|
82
|
|
|
82
|
0
|
42767
|
my ( $self, $where ) = @_; |
20
|
|
|
|
|
|
|
|
21
|
82
|
|
50
|
|
|
756
|
return $self->search( $where || {}, { prefetch => 'distribution' } ); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
#------------------------------------------------------------------------------ |
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=pod |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=encoding UTF-8 |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=for :stopwords Jeffrey Ryan Thalhammer |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 NAME |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Pinto::Schema::ResultSet::Package - Common queries for Packages |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 VERSION |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
version 0.14 |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 AUTHOR |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Jeffrey Ryan Thalhammer <jeff@stratopan.com> |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
This software is copyright (c) 2015 by Jeffrey Ryan Thalhammer. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
52
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=cut |