Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Direct exploration of CSV file. #159

Open
abdullahdevrel opened this issue Jun 29, 2024 · 0 comments
Open

[Feature Request] Direct exploration of CSV file. #159

abdullahdevrel opened this issue Jun 29, 2024 · 0 comments

Comments

@abdullahdevrel
Copy link

AFAIK, the way to explore a CSV file in Datasette involves an intermediate step of first converting the CSV file to an SQLite database file. For example:

csvs-to-sqlite ipinfo_nordicvm.csv ipinfo_nordicvm.db
datasette ipinfo_nordicvm.db

Even though this step seems inconsequential, I wonder if directly reading the CSV file would be an option. It would:

  • Reduce the need to write one more line of code
  • Reduce the need to store an additional file in storage
  • Facilitate efficient querying by storing the file in memory
  • Alternatively, instead of storing the file in memory, the SQLite db can be stored in a temp file that will be automatically deleted upon closing the Datasette instance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant