I have this petl table in Python that I want to connect to a local PostgreSQL database. But some petl table headers are in uppercase. eg, ID not id.
I realised that when I tried to append the table to the PostgreSQL, the headers were not recognised.
Error code: column "UPPERCASE_HEADER" of relation "sql_table" does not exist
.
I had to change the petl table headers to be lowercase before the table was appended to SQL successfully.
But if I wanted to leave the headers as uppercase, is there a way to still append to PostgreSQL table? Since PostgreSQL table headers are always lowercase.