Replies: 2 comments
-
Hi GmGniap, I guess the answer to your question is ... it depends ;-) The good news is that you have lots of options for building your SQLite DB. For me, I've found the easiest pattern is to use some combination of tools like Basically, something like this type of workflow for pulling in multiple .csv files in a Python script (a Jupyter Notebook works great for this task by the way):
Hope that helps a bit ... Good luck! |
Beta Was this translation helpful? Give feedback.
-
I think you can pass folders directly into csvs-to-sqlite folder/* They will then be nested into folders in the database as well |
Beta Was this translation helpful? Give feedback.
-
Hello Simon & Everyone ,
I'm not sure it's the right place to discuss my topic that's mostly related to sqlite-utils tool. There isn't discussion session for sqlite-utils repo , that's why I typed in here. I'm making a Datasette project that built with multiple datasets. My dataset folder structure is like this -
So , I would like to convert these multiple csv into related FolderName.db file. This idea can be similar to Simonw's fivethirtyeight but a little difference in db creating part. If I continue to use sqlite-utils command keys , I've to type tons of lines (maybe, for hundreds of folders) manually. Could I solve that problem in Python code or Bash script and how it'll looks like? I'm loss where I should start. Please , May I request your suggestions for possible solutions?
Sorry if I made dummy question. Thanks for your time.
🙏
Beta Was this translation helpful? Give feedback.
All reactions