line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Fey::Literal::Null; |
2
|
|
|
|
|
|
|
|
3
|
28
|
|
|
28
|
|
159
|
use strict; |
|
28
|
|
|
|
|
46
|
|
|
28
|
|
|
|
|
1164
|
|
4
|
28
|
|
|
28
|
|
294
|
use warnings; |
|
28
|
|
|
|
|
44
|
|
|
28
|
|
|
|
|
823
|
|
5
|
28
|
|
|
28
|
|
115
|
use namespace::autoclean; |
|
28
|
|
|
|
|
40
|
|
|
28
|
|
|
|
|
221
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.42'; |
8
|
|
|
|
|
|
|
|
9
|
28
|
|
|
28
|
|
2545
|
use Fey::Types; |
|
28
|
|
|
|
|
54
|
|
|
28
|
|
|
|
|
225
|
|
10
|
|
|
|
|
|
|
|
11
|
28
|
|
|
28
|
|
2963
|
use Moose 0.90; |
|
28
|
|
|
|
|
709
|
|
|
28
|
|
|
|
|
232
|
|
12
|
28
|
|
|
28
|
|
152252
|
use MooseX::SemiAffordanceAccessor 0.03; |
|
28
|
|
|
|
|
753
|
|
|
28
|
|
|
|
|
184
|
|
13
|
28
|
|
|
28
|
|
81474
|
use MooseX::StrictConstructor 0.07; |
|
28
|
|
|
|
|
646
|
|
|
28
|
|
|
|
|
179
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
with 'Fey::Role::Comparable', 'Fey::Role::Selectable', 'Fey::Role::IsLiteral'; |
16
|
|
|
|
|
|
|
|
17
|
7
|
|
|
7
|
1
|
27
|
sub sql {'NULL'} |
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
1
|
1
|
10
|
sub sql_with_alias { goto &sql } |
20
|
|
|
|
|
|
|
|
21
|
1
|
|
|
1
|
1
|
5
|
sub sql_or_alias { goto &sql } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
__PACKAGE__->meta()->make_immutable(); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
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 |