File Coverage

blib/lib/EntityModel/Query/Select.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 2 2 100.0
total 17 17 100.0


line stmt bran cond sub pod time code
1             package EntityModel::Query::Select;
2             {
3             $EntityModel::Query::Select::VERSION = '0.102';
4             }
5             use EntityModel::Class {
6 16         129 _isa => [qw{EntityModel::Query}],
7 16     16   88 };
  16         30  
8              
9             =head1 NAME
10              
11             EntityModel::Query::Select - select statement definition
12              
13             =head1 VERSION
14              
15             version 0.102
16              
17             =head1 SYNOPSIS
18              
19             See L.
20              
21             =head1 DESCRIPTION
22              
23             See L.
24              
25             =cut
26              
27             =head1 METHODS
28              
29             =cut
30              
31             =head2 import
32              
33             Register the parse handling for our 'select' attribute.
34              
35             =cut
36              
37             sub import {
38 16     16   34 my $class = shift;
39             $class->register(
40             'select' => sub {
41 8     8   12 my $self = shift;
42 8         28 $self->upgradeTo('EntityModel::Query::Select');
43 8         36 $self->parse_base(
44             @_,
45             method => 'field',
46             type => 'EntityModel::Query::Field'
47             );
48             }
49 16         194 );
50             }
51              
52             =head2 type
53              
54             =cut
55              
56 24     24 1 64 sub type { 'select'; }
57              
58             =head2 keyword_order
59              
60             =cut
61              
62 16     16 1 86 sub keyword_order { qw{type fields from join where having group order offset limit}; }
63              
64             1;
65              
66             __END__