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

Ability to create a new empty database file #30

Closed
simonw opened this issue Sep 1, 2021 · 1 comment
Closed

Ability to create a new empty database file #30

simonw opened this issue Sep 1, 2021 · 1 comment
Labels
electron-wrapper Features that go in the Node.js/Electron code enhancement New feature or request

Comments

@simonw
Copy link
Owner

simonw commented Sep 1, 2021

File -> New Database

Can call dialog.showSaveDialogSync({defaultPath: "data.db", title: "Create New Database"}) to bring up a dialog.

Create_New_Database_and_Datasette___memory_and_DevTools_-_Node_js

@simonw simonw added enhancement New feature or request electron-wrapper Features that go in the Node.js/Electron code labels Sep 1, 2021
@simonw
Copy link
Owner Author

simonw commented Sep 3, 2021

API design is to POST {"path": "/path/to/new.db"} to /-/new-empty-database-file.

simonw added a commit to simonw/datasette-app-support that referenced this issue Sep 3, 2021
@simonw simonw added this to the First public installer release milestone Sep 3, 2021
@simonw simonw closed this as completed in 471f462 Sep 3, 2021
simonw added a commit to simonw/datasette-app-support that referenced this issue Sep 3, 2021
simonw added a commit to simonw/datasette-app-support that referenced this issue Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
electron-wrapper Features that go in the Node.js/Electron code enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant