line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Fey::Placeholder; |
2
|
|
|
|
|
|
|
|
3
|
27
|
|
|
27
|
|
136
|
use strict; |
|
27
|
|
|
|
|
42
|
|
|
27
|
|
|
|
|
1075
|
|
4
|
27
|
|
|
27
|
|
129
|
use warnings; |
|
27
|
|
|
|
|
36
|
|
|
27
|
|
|
|
|
832
|
|
5
|
27
|
|
|
27
|
|
120
|
use namespace::autoclean; |
|
27
|
|
|
|
|
40
|
|
|
27
|
|
|
|
|
203
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.43'; |
8
|
|
|
|
|
|
|
|
9
|
27
|
|
|
27
|
|
2152
|
use Fey::Types; |
|
27
|
|
|
|
|
44
|
|
|
27
|
|
|
|
|
198
|
|
10
|
|
|
|
|
|
|
|
11
|
27
|
|
|
27
|
|
2962
|
use Moose 2.1200; |
|
27
|
|
|
|
|
741
|
|
|
27
|
|
|
|
|
204
|
|
12
|
27
|
|
|
27
|
|
148825
|
use MooseX::SemiAffordanceAccessor 0.03; |
|
27
|
|
|
|
|
990
|
|
|
27
|
|
|
|
|
179
|
|
13
|
27
|
|
|
27
|
|
76623
|
use MooseX::StrictConstructor 0.13; |
|
27
|
|
|
|
|
643
|
|
|
27
|
|
|
|
|
170
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
with 'Fey::Role::Comparable'; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub sql { |
18
|
71
|
|
|
71
|
1
|
364
|
return '?'; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
43
|
|
|
43
|
1
|
117
|
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.43 |
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 |