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

Exporting sqlite database(s)? #502

Closed
chrismp opened this issue Jun 6, 2019 · 3 comments
Closed

Exporting sqlite database(s)? #502

chrismp opened this issue Jun 6, 2019 · 3 comments

Comments

@chrismp
Copy link

chrismp commented Jun 6, 2019

I'm working on datasette from one computer. But if I want to work on it from another computer and want to copy the SQLite database(s) already on the Heroku datasette instance, how to I copy the database(s) to the second computer so that I can then update it and push to online via datasette's command line code that pushes code to Heroku?

@simonw
Copy link
Owner

simonw commented Jun 11, 2019

There should be a "Download SQLite DB" link at the bottom of each database page - e.g. on https://latest.datasette.io/fixtures

fixtures

Does that solve this? Re-open the issue if it doesn't!

@simonw simonw closed this as completed Jun 11, 2019
@chrismp
Copy link
Author

chrismp commented Jun 18, 2019

It appears that I cannot reopen this issue but the proposed solution did not solve it. The link is not there. I have full text search enabled for a bunch of tables in my database and even clicking the link to reveal hidden tables did not show the download DB link.

@louispotok
Copy link
Contributor

For what it's worth, if anyone finds this in the future, I was having the same issue.

After digging through the code, it turned out that the database download is only available if it the db served in immutable mode, so datasette serve -i xyz.db rather than the doc's quickstart recommendation of datasette serve xyz.db.

louispotok added a commit to louispotok/datasette that referenced this issue Apr 3, 2021
This fixes one possible source of confusion seen in simonw#502 and clarifies
when database downloads will be shown and allowed.
louispotok added a commit to louispotok/datasette that referenced this issue Apr 3, 2021
This fixes one possible source of confusion seen in simonw#502 and clarifies
when database downloads will be shown and allowed.
simonw pushed a commit that referenced this issue Jun 5, 2021
* Update docs: explain allow_download setting

This fixes one possible source of confusion seen in #502 and clarifies
when database downloads will be shown and allowed.
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

3 participants