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

@ -901,6 +901,7 @@ def test_config_json(app_client):
"default_cache_ttl": 365 * 24 * 60 * 60,
"num_sql_threads": 3,
"cache_size_kb": 0,
"allow_csv_stream": True,
} == response.json