You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My understanding of the --reload option was that if the database file changed datasette would automatically reload.
I'm running on a Mac and from the datasette UI queries don't seem to be picking up data in a newly changed db (I checked the db timestamp - it certainly updated).
I was also expecting to see some sort of log statement in the datasette logging to say that it had detected a file change and restarted, but don't see anything there?
Will try to check on an Ubuntu box when I get a chance to see if this is a Mac thing.
The text was updated successfully, but these errors were encountered:
psychemedia
changed the title
Datasette reload when database file changes
Datasette doesn't reload when database file changes
Apr 13, 2019
You should be able to see the reload happening in the console logs:
I'm doing some work at the moment to handle mutating files MUCH better - #419 - my goal is to have Datasette work against SQLite files that are being updated out-of-the box, and change the current immutable behaviour to be an option rather than the default.
Datasette master now treats databases as readonly but NOT immutable. This means you can make changes to those databases from another process and those changes will be instantly reflected in the Datasette interface.
As such, reloading on database change is no longer necessary. Closing this ticket.
My understanding of the
--reload
option was that if the database file changeddatasette
would automatically reload.I'm running on a Mac and from the
datasette
UI queries don't seem to be picking up data in a newly changed db (I checked the db timestamp - it certainly updated).I was also expecting to see some sort of log statement in the datasette logging to say that it had detected a file change and restarted, but don't see anything there?
Will try to check on an Ubuntu box when I get a chance to see if this is a Mac thing.
The text was updated successfully, but these errors were encountered: