JsonSQL::Query::Query - JSON query base class. Provides the quote_identifier method for escaping table and column identifiers.
version 0.4
This is a base module used to construct JsonSQL::Query modules. It is not meant to be instantiated directly. Instead have a look at,
JsonSQL::Query::Select
JsonSQL::Query::Insert
You can also create your own subclass...
Creates a JsonSQL::Validator object using the supplied $query_rulesets and $json_schema and stores a reference to use for future validation and whitelist checking purposes. See JsonSQL::Validator for more information.
$query_rulesets => The whitelist rule sets to be associated with this JsonSQL::Query object. $json_schema => The name of the JSON schema to use for validation of the query.
Since table and column identifiers cannot be parameterized by most databases they have to be quoted. This method is used during SQL query construction to quote non-parameterized identifiers.
$identifier => The identifier string to quote. Ex: Column1 => 'Column1' Co'lumn1 => 'Co''lumn1'
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.