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         35  
  27         867  
4 27     27   112 use warnings;
  27         38  
  27         725  
5 27     27   117 use namespace::autoclean;
  27         47  
  27         139  
6              
7             our $VERSION = '0.42';
8              
9 27     27   1758 use Fey::Types qw( WhereBoolean );
  27         43  
  27         196  
10              
11 27     27   186346 use Moose 0.90;
  27         733  
  27         204  
12              
13             has 'comparison' => (
14             is => 'ro',
15             isa => WhereBoolean,
16             required => 1,
17             );
18              
19             sub sql {
20 12     12 0 352 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.42
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