The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Fey::Literal::String - Represents a literal string in a SQL statement

VERSION

version 0.43

SYNOPSIS

  my $string = Fey::Literal::String->new($string)

DESCRIPTION

This class represents a literal string in a SQL statement.

INHERITANCE

This module is a subclass of Fey::Literal.

METHODS

This class provides the following methods:

Fey::Literal::String->new($string)

This method creates a new Fey::Literal::String object representing the string passed to the constructor.

$string->string()

Returns the string as passed to the constructor.

$string->id()

The id for a string is always just the string itself.

$string->sql()

$string->sql_with_alias()

$string->sql_or_alias()

Returns the appropriate SQL snippet.

ROLES

This class does the Fey::Role::Selectable and Fey::Role::Comparable roles.

BUGS

See Fey for details on how to report bugs.

AUTHOR

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2011 - 2015 by Dave Rolsky.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)