Fey/Literal/Null.pm

filter: Statementstmt 100% 28 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod 100% 3 / 3 totaltotal 100% 41 / 41 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Fey/Exceptions.pm ↑ Summary Fey/Literal/Number.pm »
1 package Fey::Literal::Null;
2  
3 27 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 27 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 27 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 27 our $VERSION = '0.42';
8  
9 27 ▶use Fey::Types;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 27 ▶use Moose 0.90;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 27 ▶use MooseX::SemiAffordanceAccessor 0.03;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 27 ▶use MooseX::StrictConstructor 0.07;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 27 with 'Fey::Role::Comparable', 'Fey::Role::Selectable', 'Fey::Role::IsLiteral';
16  
17 7 ▶sub sql {'NULL'}
Subroutine sql: called CC=1 SCAR=0.0
Pod documented
18  
19 1 ▶sub sql_with_alias { goto &sql }
Subroutine sql_with_alias: called CC=1 SCAR=0.0
Pod documented
20  
21 1 ▶sub sql_or_alias { goto &sql }
Subroutine sql_or_alias: called CC=1 SCAR=0.0
Pod documented
22  
23 27 __PACKAGE__->meta()->make_immutable();
24  
25 27 1;
26  
27 # ABSTRACT: Represents a literal NULL in a SQL statement
28  
29 __END__
30  
31 =pod
32  
33 =head1 NAME
34  
35 Fey::Literal::Null - Represents a literal NULL in a SQL statement
36  
37 =head1 VERSION
38  
39 version 0.42
40  
41 =head1 SYNOPSIS
42  
43 my $null = Fey::Literal::Null->new()
44  
45 =head1 DESCRIPTION
46  
47 This class represents a literal C<NULL> in a SQL statement.
48  
49 =head1 INHERITANCE
50  
51 This module is a subclass of C<Fey::Literal>.
52  
53 =head1 METHODS
54  
55 This class provides the following methods:
56  
57 =head2 Fey::Literal::Null->new()
58  
59 This method creates a new C<Fey::Literal::Null> object.
60  
61 =head2 $null->id()
62  
63 The id for a null is always just "NULL".
64  
65 =head2 $null->sql()
66  
67 =head2 $null->sql_with_alias()
68  
69 =head2 $null->sql_or_alias()
70  
71 Returns the appropriate SQL snippet.
72  
73 =head1 ROLES
74  
75 This class does the C<Fey::Role::Selectable> and
76 C<Fey::Role::Comparable> roles.
77  
78 =head1 BUGS
79  
80 See L<Fey> for details on how to report bugs.
81  
82 =head1 AUTHOR
83  
84 Dave Rolsky <autarch@urth.org>
85  
86 =head1 COPYRIGHT AND LICENSE
87  
88 This software is Copyright (c) 2011 - 2015 by Dave Rolsky.
89  
90 This is free software, licensed under:
91  
92 The Artistic License 2.0 (GPL Compatible)
93  
94 =cut
« Fey/Exceptions.pm ↑ Summary Fey/Literal/Number.pm »