https://sqlite-utils.datasette.io/en/stable/cli.html#csv-files-without-a-header-row
The first row of any CSV or TSV file is expected to contain the names of the columns in that file.
If your file does not include this row, you can use the --no-headers option to specify that the tool should not use that fist row as headers.
If you do this, the table will be created with column names called untitled_1 and untitled_2 and so on. You can then rename them using the sqlite-utils transform ... --rename command.
It would be nice to be able to specify the column names when importing CSV/TSV without a header row, via an extra command line option.
(renaming a column of a large table can take a long time, which makes it an inconvenient workaround)
https://sqlite-utils.datasette.io/en/stable/cli.html#csv-files-without-a-header-row
It would be nice to be able to specify the column names when importing CSV/TSV without a header row, via an extra command line option.
(renaming a column of a large table can take a long time, which makes it an inconvenient workaround)