Fey::Literal::Number - Represents a literal number in a SQL statement


Fey documentation  | view source Contained in the Fey distribution.

Index


NAME

Top

Fey::Literal::Number - Represents a literal number in a SQL statement

VERSION

Top

version 0.40

SYNOPSIS

Top

  my $number = Fey::Literal::Number->new($number)

DESCRIPTION

Top

This class represents a literal number in a SQL statement, either an integer or float.

INHERITANCE

Top

This module is a subclass of Fey::Literal.

METHODS

Top

This class provides the following methods:

Fey::Literal::Number->new($number)

This method creates a new Fey::Literal::Number object representing the number passed to the constructor.

$number->number()

Returns the number as passed to the constructor.

$number->id()

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

$number->sql()

$number->sql_with_alias()

$number->sql_or_alias()

Returns the appropriate SQL snippet.

ROLES

Top

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

BUGS

Top

See Fey for details on how to report bugs.

AUTHOR

Top

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE

Top


Fey documentation  | view source Contained in the Fey distribution.