Retrieves records from a table in the form of a JSON array (stringified). The only mandatory parameter is the ‘tableName’. The rest are all optional with suitable defaults wherever applicable.
If a fail-over event is triggered, this function will handle failing over to a secondary cluster.
Parameters
Name of the table to query
the columns names to retrieve, or None for all
the offset to start from; default 0
the maximum number of records; default GPUdb.END_OF_SET
the filter expression
the list of columns to order by
the having clause
Returns
The response string (JSON)
Raises
On detecting invalid parameters or some other internal errors
Example