Begging newbie forgiveness here
I've gotten a bunch of POC's working but now that I am working on my production dataset the CSV file I am parsing has the ID field as a string but in Postgres it's an Integer.
The basic error I get is:
Unhandled promise rejection (rejection id: 1): error: invalid input syntax for integer: "contact_id"
and the Insert statement looks as follows:
insert into "tbl_contact"("contact_id","last_name","first_name") values('contact_id','last_name','first_name'),('33383971','Dxxx','Jxxx'),('33383973','Dxxx','Sxxx') ...
I could transform the array before I send it to the helper ... but I've been looking at some of the override functions in ColumnSet ... like setting the column to int[] ... here is what happens there:
Unhandled promise rejection (rejection id: 1): error: malformed array literal: "contact_id"
insert into "tbl_contact"("contact_id","last_name","first_name") values('contact_id'::int[],'last_name','first_name'),('33383971'::int[],'Dxxx','Jxxx'),('33383973'::int[],'Dxxx','Sxxxx') ...
Before I go do my own transform ... am I missing something simple? Another helper? A param? etc.