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: --create option to create database file if it does not yet exist #1135

Closed
simonw opened this issue Dec 9, 2020 · 0 comments
Closed

Comments

@simonw
Copy link
Owner

simonw commented Dec 9, 2020

I'd like to be able to tell people to run the following in the Datasette documentation to get started:

brew install datasette
datasette install datasette-upload-csvs
datasette data.db --create --root --open

This would give them a local Datasette instance with the ability to drag-and-drop CSV files directly into it.

Just one catch: I don't want to have to talk them through creating an empty SQLite database file. So I want to add a new --create option which means "If any of the database files passed on the command-line do not yet exist, create them".

@simonw simonw added this to the Datasette Next milestone Dec 9, 2020
@simonw simonw closed this as completed in fe86d85 Dec 9, 2020
simonw added a commit that referenced this issue Dec 11, 2020
@simonw simonw removed this from the Datasette Next milestone Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant