Fey::Placeholder - Represents a placeholder


Fey documentation Contained in the Fey distribution.

Index


Code Index:

NAME

Top

Fey::Placeholder - Represents a placeholder

VERSION

Top

version 0.40

SYNOPSIS

Top

  my $placeholder = Fey::Placeholder->new()

DESCRIPTION

Top

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.

METHODS

Top

This class provides the following methods:

Fey::Placeholder->new()

This method creates a new Fey::Placeholder object.

$placeholder->sql()

$placeholder->sql_or_alias()

Returns the appropriate SQL snippet.

ROLES

Top

This class does the Fey::Role::Comparable role.

BUGS

Top

See Fey for details on how to report bugs.

AUTHOR

Top

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE

Top


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__