| Fey documentation | Contained in the Fey distribution. |
Fey::Placeholder - Represents a placeholder
version 0.40
my $placeholder = Fey::Placeholder->new()
This class represents a placeholder in a SQL statement.
For now, this always means the string ?, but in the future it may
allow for numbered or named placeholders.
This class provides the following methods:
This method creates a new Fey::Placeholder object.
Returns the appropriate SQL snippet.
This class does the Fey::Role::Comparable role.
See Fey for details on how to report bugs.
Dave Rolsky <autarch@urth.org>
This software is Copyright (c) 2011 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
| Fey documentation | Contained in the Fey distribution. |
package Fey::Placeholder; BEGIN { $Fey::Placeholder::VERSION = '0.40'; } use strict; use warnings; use namespace::autoclean; use Fey::Types; use Moose; use MooseX::SemiAffordanceAccessor; use MooseX::StrictConstructor; with 'Fey::Role::Comparable'; sub sql { return '?'; } sub sql_or_alias { goto &sql; } __PACKAGE__->meta()->make_immutable(); 1; # ABSTRACT: Represents a placeholder
__END__