DBIx::SQLEngine::Criteria::LiteralSQL - Criteria with SQL snippets


DBIx-SQLEngine documentation Contained in the DBIx-SQLEngine distribution.

Index


Code Index:

NAME

Top

DBIx::SQLEngine::Criteria::LiteralSQL - Criteria with SQL snippets

SYNOPSIS

Top

  my $crit = DBIx::SQLEngine::Criteria::LiteralSQL->new( "name = 'Dave'" );




DESCRIPTION

Top

DBIx::SQLEngine::Criteria::LiteralSQL objects are built around an array of a SQL string, followed by values to be bound the the '?' placeholders in the string, if any.

REFERENCE

Top

Constructor

new
  DBIx::SQLEngine::Criteria::LiteralSQL->new( $sql ) : $comparison

  DBIx::SQLEngine::Criteria::LiteralSQL->new( $sql, @params ) : $comparison

Constructor.

SQL Where Generation

sql_where()
  $criteria->sql_where() : $sql, @params

Returns the SQL fragment and parameters stored by the constructor.

SEE ALSO

Top

See DBIx::SQLEngine::Criteria and DBIx::SQLEngine::Criteria::Comparison for more information on using these objects.

See DBIx::SQLEngine for the overall interface and developer documentation.

See DBIx::SQLEngine::Docs::ReadMe for general information about this distribution, including installation and license information.


DBIx-SQLEngine documentation Contained in the DBIx-SQLEngine distribution.
package DBIx::SQLEngine::Criteria::LiteralSQL;

@ISA = 'DBIx::SQLEngine::Criteria';
use strict;

########################################################################

sub new {
  my $package = shift;
  bless [ @_ ], $package;
}

########################################################################

sub sql_where {
  my $self = shift;
  @$self;
}

########################################################################

1;

########################################################################

########################################################################