JsonSQL::Param::Condition - JsonSQL::Param::Condition object. This is a base class used to derive subclasses for parsing condition statements.
version 0.41
This module constructs a Perl object representing the VALUES parameter of an SQL INSERT statement and has methods for generating the appropriate SQL string and bind values for use with the DBI module.
(ex: 'and', 'eq', or 'in').
Instantiates and returns a new JsonSQL::Param::Condition object.
$conditionhashref => A hashref of the condition statement keyed by the operator.
Returns a JsonSQL::Error object on failure.
Generates the SQL statement represented by the object. Returns:
$sql => An SQL string of conditional parameters to use with a conditional clause (ex: WHERE or ON). $binds => An arrayref of parameterized values to pass with the query.
Chris Hoefler <bhoefler@draper.com>
This software is copyright (c) 2017 by Chris Hoefler.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install JsonSQL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JsonSQL
CPAN shell
perl -MCPAN -e shell install JsonSQL
For more information on module installation, please visit the detailed CPAN module installation guide.