Inserts a single JSON record or an array of JSON records passed in as a string.
If a fail-over event is triggered, this function will handle failing over to a secondary cluster.
Parameters
Either a single JSON record or an array of JSON records (as string). Mandatory.
The name of the table to insert into.
Map of options–only valid one is validate, which determines whether JSON validation is performed on all records before inserting
Same options as the create_table_options in the GPUdb.insert_records_from_payload() endpoint
Same options as options in the GPUdb.insert_records_from_payload() endpoint
Returns
The response string (JSON)
Raises
On detecting invalid parameters or some other internal errors
Example