File Coverage

blib/lib/Fey/SQL/Fragment/Where/Boolean.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 0 1 0.0
total 22 23 95.6


line stmt bran cond sub pod time code
1             package Fey::SQL::Fragment::Where::Boolean;
2              
3 27     27   128 use strict;
  27         44  
  27         902  
4 27     27   121 use warnings;
  27         41  
  27         634  
5 27     27   116 use namespace::autoclean;
  27         40  
  27         145  
6              
7             our $VERSION = '0.43';
8              
9 27     27   1803 use Fey::Types qw( WhereBoolean );
  27         49  
  27         231  
10              
11 27     27   184784 use Moose 2.1200;
  27         815  
  27         202  
12              
13             has 'comparison' => (
14             is => 'ro',
15             isa => WhereBoolean,
16             required => 1,
17             );
18              
19             sub sql {
20 12     12 0 646 return $_[0]->comparison();
21             }
22              
23             __PACKAGE__->meta()->make_immutable();
24              
25             1;
26              
27             # ABSTRACT: Represents an AND or OR in a WHERE clause
28              
29             __END__
30              
31             =pod
32              
33             =head1 NAME
34              
35             Fey::SQL::Fragment::Where::Boolean - Represents an AND or OR in a WHERE clause
36              
37             =head1 VERSION
38              
39             version 0.43
40              
41             =head1 DESCRIPTION
42              
43             This class represents a subselect an AND or OR in a WHERE clause.
44              
45             It is intended solely for internal use in L<Fey::SQL> objects, and as
46             such is not intended for public use.
47              
48             =head1 BUGS
49              
50             See L<Fey> for details on how to report bugs.
51              
52             =head1 AUTHOR
53              
54             Dave Rolsky <autarch@urth.org>
55              
56             =head1 COPYRIGHT AND LICENSE
57              
58             This software is Copyright (c) 2011 - 2015 by Dave Rolsky.
59              
60             This is free software, licensed under:
61              
62             The Artistic License 2.0 (GPL Compatible)
63              
64             =cut