In python, I would like to:
- Obtain a filename from a user to a csv file
- convert the csv into a temporary table
- run user defined queries against a central database to add data to the table
- output to a new csv for the user to use.
I can handle most of these steps there are just a few things that I don't understand.
Is this possible using a sqlite script? Would python sqlite class be able to execute that script?
conn = sqlite3.connect(central_database, check_same_thread=False)
cur = self.conn.cursor()
#user defines csv file and other params via http form -> script
cur.execute(script)
csv = cur.fetchall()
I could be thinking about this all wrong. So here is my setup:
- python 3.6.3
- flask/jinja2 (javascript capable)
- sqlite 3.22.0