TablePlus icon indicating copy to clipboard operation
TablePlus copied to clipboard

Feature Request: rename table columns on import for CSV

Open joshcalloway opened this issue 7 years ago • 1 comments

  1. Which driver are you using and version of it (Ex: PostgreSQL 10.0): MySQL 8
  2. Which TablePlus build number are you using (the number on the welcome screen, Ex: build 81): 1.2 build 182
  3. The steps to reproduce this issue: Import data from csv to new table

It would be nice to be able to rename or provide names for table columns when performing the import. For example, I have several csvs where the first row is almost a header but I get an error when importing due to some name conflicts. It would be nice to be able to fix those as I do the import instead of having to edit the source csv. Or at least be able to exclude the first row of the csv so I can rename them after the import. Sample csv image attached. screenshot 2019-01-28 08 28 29

joshcalloway avatar Jan 28 '19 13:01 joshcalloway

Hi @joshcalloway you can do it by renaming the CSV column (or remove the first row), doing it on the GUI may increase the complexity of the importer.

huyphams avatar Mar 11 '19 03:03 huyphams