I have a sqlite database that is populated with values from csv files. I would like to create a script that when run:
- deletes the old tables
- creates new tables with the same schema (with newly updated values)
I noticed that sqlite script files don't accept ".mode csv" or .import "csv". Is there a way to automate this is with a script of some sort?
require "csv"andrequire "sqlite3"