I know that I can import a CSV file into a previously existing table in a sqlite database using:
.import filename.csv tablename
However, is there such a method / library that can automatically create a table (and its schema), so I do not need to manually determine: column1 = string, column2 = int .... etc.
Or maybe we can import everything as a string. To my limited understanding, sqlite3 still treats all fields as a string?
Edit: The names of each column are not so important here (suppose we can get this data from the first line in the CSV file, or they can be arbitrary names). The key is to identify the value types of each column.
source share