Fey::Literal::Number(3)

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

VERSION
version 0.44

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

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

INHERITANCE
This module is a subclass of "Fey::Literal".

METHODS
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
This class does the "Fey::Role::Selectable" and "Fey::Role::Comparable" roles.

BUGS
See Fey for details on how to report bugs.

Bugs may be submitted at <https://github.com/ap/Fey/issues>.

SOURCE
The source code repository for Fey can be found at <https://github.com/ap/Fey>.

AUTHOR
Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE
This software is Copyright (c) 2011 - 2025 by Dave Rolsky.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)

The full text of the license can be found in the LICENSE file included with this distribution.