EntityModel::Query::Base - base class for EntityModel::Query-derived components
version 0.102
See Entitymodel::Query.
Register a parse handler for the given key(s).
Called from subclass ->import methods to hook into the configuration parser:
EntityModel::Query->new( x => [ ], y => [ ] )
will call the registered parse_x and parse_y methods to handle the two directives, unless those methods are already available on the class.
If this class supports the parse_X method, or the given configuration key was registered by one of the subclasses, returns the appropriate parse handler.
Returns undef if no handler was available.
Merge adjacent plaintext sections in an inline SQL expression.
This would for example convert the following:
'select', ' ', Entity::Field, ' ', 'from', ' ', Entity::Table
into:
'select ', Entity::Field, ' from ', Entity::Table
Extract a value.
Extract a quoted value suitable for use in direct SQL strings.
The plain-string form of SQL query is only intended for debugging and tracing; regular queries should always use the prepared statement form provided by sqlAndParameters.
clone, dump, new, sap
Tom Molesworth <cpan@entitymodel.com>
Copyright Tom Molesworth 2008-2011. Licensed under the same terms as Perl itself.
To install EntityModel, copy and paste the appropriate command in to your terminal.
cpanm
cpanm EntityModel
CPAN shell
perl -MCPAN -e shell install EntityModel
For more information on module installation, please visit the detailed CPAN module installation guide.