NAME

JsonSQL::Param::Table - JsonSQL::Param::Table object. Stores a Perl representation of an SQL table expression for use in JsonSQL::Query objects.

VERSION

version 0.4

SYNOPSIS

This module constructs a Perl object representing a table identifier for use in SQL queries. It has a method for extracting the parameters to generate the appropriate SQL string.

DESCRIPTION

Object properties:

_tableName => <string>
_tableSchema => <string>

Generated parameters:

$tableString => <string>

METHODS

Constructor new($tablehashref, $queryObj)

Instantiates and returns a new JsonSQL::Param::Table object.

$tablehashref               => A hashref of table/schema properties used to construct the object.
$queryObj                   => A reference to the JsonSQL::Query object that will own this object.

Returns a JsonSQL::Error object on failure.

ObjectMethod get_table_param -> $tableString

Generates parameters represented by the object for the SQL statement. Returns:

$tableString           => The SQL table identifier as a quoted string. Includes schema as appropriate.

AUTHOR

Chris Hoefler <bhoefler@draper.com>

COPYRIGHT AND LICENSE

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.