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

NAME

EntityModel::Query::Condition - a condition clause for where, on etc.

VERSION

version 0.102

SYNOPSIS

DESCRIPTION

inlineSQL

Returns the "inline SQL" representation for this condition. See EntityModel::Query description for more details on what this means.

parseCondition

An array reference expands out as follows:

 [ x => 3 ]

parseBranch

For a hashref, the following three items should be in the hash:

  • left - left node of the branch, this will be recursed into as appropriate

  • right - right node of the branch, will be recursed as required

  • op - the operation to perform, such as =, and, or, etc.

An arrayref will use the '=' operation for all entries unless the second element is a hashref, in which case the key will be used as the operation and the value as the RHS.

parseQuery

quoteIdentifier

Convert an identifier to the quoted version.

INHERITED METHODS

EntityModel::Query::Base

asString, can_parse, decantQuotedValue, decantValue, normaliseInlineSQL, register, sqlAndParameters, sqlString

EntityModel::BaseClass

clone, dump, sap

AUTHOR

Tom Molesworth <cpan@entitymodel.com>

LICENSE

Copyright Tom Molesworth 2008-2011. Licensed under the same terms as Perl itself.