line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Fey::Literal::Null; |
2
|
|
|
|
|
|
|
|
3
|
28
|
|
|
28
|
|
218
|
use strict; |
|
28
|
|
|
|
|
55
|
|
|
28
|
|
|
|
|
1266
|
|
4
|
28
|
|
|
28
|
|
223
|
use warnings; |
|
28
|
|
|
|
|
52
|
|
|
28
|
|
|
|
|
923
|
|
5
|
28
|
|
|
28
|
|
138
|
use namespace::autoclean; |
|
28
|
|
|
|
|
47
|
|
|
28
|
|
|
|
|
239
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.43'; |
8
|
|
|
|
|
|
|
|
9
|
28
|
|
|
28
|
|
2652
|
use Fey::Types; |
|
28
|
|
|
|
|
59
|
|
|
28
|
|
|
|
|
257
|
|
10
|
|
|
|
|
|
|
|
11
|
28
|
|
|
28
|
|
3034
|
use Moose 2.1200; |
|
28
|
|
|
|
|
787
|
|
|
28
|
|
|
|
|
230
|
|
12
|
28
|
|
|
28
|
|
165625
|
use MooseX::SemiAffordanceAccessor 0.03; |
|
28
|
|
|
|
|
831
|
|
|
28
|
|
|
|
|
197
|
|
13
|
28
|
|
|
28
|
|
85804
|
use MooseX::StrictConstructor 0.13; |
|
28
|
|
|
|
|
684
|
|
|
28
|
|
|
|
|
186
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
with 'Fey::Role::Comparable', 'Fey::Role::Selectable', 'Fey::Role::IsLiteral'; |
16
|
|
|
|
|
|
|
|
17
|
7
|
|
|
7
|
1
|
24
|
sub sql {'NULL'} |
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
1
|
1
|
9
|
sub sql_with_alias { goto &sql } |
20
|
|
|
|
|
|
|
|
21
|
1
|
|
|
1
|
1
|
14
|
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.43 |
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 |