table.csv?_stream=1 to download all rows - refs #266

This option causes Datasette to serve ALL rows in the table, by internally
following the _next= pagination links and serving everything out as a stream.

Also added new config option, allow_csv_stream, which can be used to disable
this feature.
This commit is contained in:
Simon Willison 2018-06-17 19:31:09 -07:00
commit 619a9ddb33
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
5 changed files with 69 additions and 44 deletions

View file

@ -125,3 +125,15 @@ Sets the amount of memory SQLite uses for its `per-connection cache <https://www
::
datasette mydatabase.db --config cache_size_kb:5000
allow_csv_stream
----------------
Enables the feature where an entire table (potentially hundreds of thousands of
rows) can be exported as a single CSV file. This is turned on by default - you
can turn it off like this::
::
datasette mydatabase.db --config allow_csv_stream:off