package Fey::Literal::Null; BEGIN { $Fey::Literal::Null::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', 'Fey::Role::Selectable', 'Fey::Role::IsLiteral'; sub sql {'NULL'} sub sql_with_alias { goto &sql } sub sql_or_alias { goto &sql } __PACKAGE__->meta()->make_immutable(); 1; # ABSTRACT: Represents a literal NULL in a SQL statement =pod =head1 NAME Fey::Literal::Null - Represents a literal NULL in a SQL statement =head1 VERSION version 0.40 =head1 SYNOPSIS my $null = Fey::Literal::Null->new() =head1 DESCRIPTION This class represents a literal C in a SQL statement. =head1 INHERITANCE This module is a subclass of C. =head1 METHODS This class provides the following methods: =head2 Fey::Literal::Null->new() This method creates a new C object. =head2 $null->id() The id for a null is always just "NULL". =head2 $null->sql() =head2 $null->sql_with_alias() =head2 $null->sql_or_alias() Returns the appropriate SQL snippet. =head1 ROLES This class does the C and C roles. =head1 BUGS See L for details on how to report bugs. =head1 AUTHOR Dave Rolsky =head1 COPYRIGHT AND LICENSE This software is Copyright (c) 2011 by Dave Rolsky. This is free software, licensed under: The Artistic License 2.0 (GPL Compatible) =cut __END__