| 1 | package EntityModel::Query::Select; | ||
| 2 | { | ||
| 3 | 33 | $EntityModel::Query::Select::VERSION = '0.102'; | |
| 4 | } | ||
| 5 | 33 | ▶ | use EntityModel::Class { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 33 | _isa => [qw{EntityModel::Query}], | |
| 7 | 33 | }; | |
| 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<Entitymodel::Query>. | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | See L<Entitymodel::Query>. | ||
| 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 | 32 | ▶ | sub import { |
|
Subroutine
import: called CC=1 SCAR=0.0
| |||
| 38 | 32 | my $class = shift; | |
| 39 | $class->register( | ||
| 40 | 8 | ▶ | 'select' => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 41 | 8 | my $self = shift; | |
| 42 | 8 | $self->upgradeTo('EntityModel::Query::Select'); | |
| 43 | 8 | $self->parse_base( | |
| 44 | @_, | ||
| 45 | method => 'field', | ||
| 46 | type => 'EntityModel::Query::Field' | ||
| 47 | ); | ||
| 48 | } | ||
| 49 | 32 | ); | |
| 50 | } | ||
| 51 | |||
| 52 | =head2 type | ||
| 53 | |||
| 54 | =cut | ||
| 55 | |||
| 56 | 24 | ▶ | sub type { 'select'; } |
|
Subroutine
type: called CC=1 SCAR=0.0
Pod
documented
| |||
| 57 | |||
| 58 | =head2 keyword_order | ||
| 59 | |||
| 60 | =cut | ||
| 61 | |||
| 62 | 16 | ▶ | sub keyword_order { qw{type fields from join where having group order offset limit}; } |
|
Subroutine
keyword_order: called CC=1 SCAR=0.0
Pod
documented
| |||
| 63 | |||
| 64 | 33 | 1; | |
| 65 | |||
| 66 | __END__ | ||