line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Fey::Placeholder; |
2
|
|
|
|
|
|
|
|
3
|
27
|
|
|
27
|
|
138
|
use strict; |
|
27
|
|
|
|
|
34
|
|
|
27
|
|
|
|
|
1010
|
|
4
|
27
|
|
|
27
|
|
119
|
use warnings; |
|
27
|
|
|
|
|
41
|
|
|
27
|
|
|
|
|
727
|
|
5
|
27
|
|
|
27
|
|
105
|
use namespace::autoclean; |
|
27
|
|
|
|
|
37
|
|
|
27
|
|
|
|
|
183
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.42'; |
8
|
|
|
|
|
|
|
|
9
|
27
|
|
|
27
|
|
2038
|
use Fey::Types; |
|
27
|
|
|
|
|
49
|
|
|
27
|
|
|
|
|
184
|
|
10
|
|
|
|
|
|
|
|
11
|
27
|
|
|
27
|
|
2624
|
use Moose 0.90; |
|
27
|
|
|
|
|
624
|
|
|
27
|
|
|
|
|
185
|
|
12
|
27
|
|
|
27
|
|
144165
|
use MooseX::SemiAffordanceAccessor 0.03; |
|
27
|
|
|
|
|
701
|
|
|
27
|
|
|
|
|
172
|
|
13
|
27
|
|
|
27
|
|
75605
|
use MooseX::StrictConstructor 0.07; |
|
27
|
|
|
|
|
578
|
|
|
27
|
|
|
|
|
167
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
with 'Fey::Role::Comparable'; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub sql { |
18
|
71
|
|
|
71
|
1
|
302
|
return '?'; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
43
|
|
|
43
|
1
|
109
|
sub sql_or_alias { goto &sql; } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
__PACKAGE__->meta()->make_immutable(); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
# ABSTRACT: Represents a placeholder |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=pod |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 NAME |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Fey::Placeholder - Represents a placeholder |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 VERSION |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
version 0.42 |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 SYNOPSIS |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
my $placeholder = Fey::Placeholder->new() |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 DESCRIPTION |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
This class represents a placeholder in a SQL statement. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
For now, this always means the string C<?>, but in the future it may |
50
|
|
|
|
|
|
|
allow for numbered or named placeholders. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 METHODS |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
This class provides the following methods: |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head2 Fey::Placeholder->new() |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
This method creates a new C<Fey::Placeholder> object. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head2 $placeholder->sql() |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head2 $placeholder->sql_or_alias() |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Returns the appropriate SQL snippet. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 ROLES |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
This class does the C<Fey::Role::Comparable> role. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 BUGS |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
See L<Fey> for details on how to report bugs. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 AUTHOR |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
Dave Rolsky <autarch@urth.org> |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
This software is Copyright (c) 2011 - 2015 by Dave Rolsky. |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
This is free software, licensed under: |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
The Artistic License 2.0 (GPL Compatible) |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=cut |