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

NAME

DBIx::SQLEngine::Criteria - Struct for database criteria info

SYNOPSIS

  my $crit = DBIx::SQLEngine::Criteria->type_new( $type, ... );
  
  print $crit->sql_where();

DESCRIPTION

DBIx::SQLEngine::Criteria objects hold information about particular query criteria.

REFERENCE

Constructor

Multiple subclasses based on type.

new

Abstract. Implemented in each subclass

type_new
  DBIx::SQLEngine::Criteria->type_new( $type, @args ) : $criteria

Looks up type, then calls new.

type

Multiple subclasses based on type. (See "subclass_name" in Class::MakeMethods::Template::ClassName.)

Generic Argument Parsing

auto
  DBIx::SQLEngine::Criteria->auto( $sql_string ) : $criteria
  DBIx::SQLEngine::Criteria->auto( [ $sql_string, @params ] ) : $criteria
  DBIx::SQLEngine::Criteria->auto( $criteria_object ) : $criteria_object
  DBIx::SQLEngine::Criteria->auto( { fieldname => matchvalue, ... } ) : $criteria

Convert any one of several standard criteria representations into a DBIx::SQLEngine::Criteria object.

auto_and
  DBIx::SQLEngine::Criteria->auto( @any_of_the_above ) : $criteria

Create a single criteria requiring the satisfaction of each of the separate criteria passed in. Supports the same argument forms as auto.

auto_where
  DBIx::SQLEngine::Criteria->auto_where( @any_of_the_above ) : $sql, @params

Create a single criteria requiring the satisfaction of each of the separate criteria passed in, and returns its sql_where results. Supports the same argument forms as auto.