Export a copy of a SQLite database on demand
Install this plugin in the same environment as Datasette.
datasette install datasette-export-databaseUsers with the export-database permission will be able to download a fresh snapshot of any on-disk (not in-memory) database using a new option in the database action menu.
To set up this plugin locally, first checkout the code. Then run the tests with uv:
cd datasette-export-database
uv run pytestTo try the plugin out (with the permission set for every user):
uv run datasette test.db --create -s permissions.export-database true