JsonSQL::Param::Fields - JsonSQL::Param::Fields object. Stores an array of JsonSQL::Param::Field objects to use for constructing JsonSQL::Query objects.
version 0.4
This module constructs a Perl object container of JsonSQL::Param::Field objects.
Instantiates and returns a new JsonSQL::Param::Fields object, which is an array of JsonSQL::Param::Field objects.
$fieldsarrayref => An arrayref of field hashes used to construct the object. $queryObj => A reference to the JsonSQL::Query object that will own this object. $default_table_rules => The default whitelist table rules to use to validate access when the table params are not provided to the field object. Usually, these are acquired from the table params of another object (ex: the FROM clause of a SELECT statement).
Returns a JsonSQL::Error object on failure.
Generates parameters represented by the object for the SQL statement. Returns:
$fieldsArray => Arrayref of field identifiers to use for the query. Constructed from child L<JsonSQL::Param::Field> objects.
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.