Migration data from thingworx to external Postgres
we want to move some thingworx datatable data to external postgres database table and we have below queries.
1. I have a datatable schema with 10 columns. How to create the same schema in external Postgres database (Note: Using Database template, Configuration section pointing to external postgress db now) ? I have to create manually in the target postgres datatable or any way to pull the same schema available in Thingworx datatable to external postgress table and create the same table there?
2. I have 10 records in thingworx Test Table. How to copy the all records to Test table in external postgres database.? Below steps specifies moving record by record. But i just want to know if there is a way to move the whole records.
Steps:
1. call GetDataTable entries from thingworx which result infotable of 10 records
2. Loop through the info table of 10 records, call a sql insert command of database thing which inserts single record each time it is called
Please provide your inputs.

