mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
.blob output renderer
* _blob_hash= checking plus refactored to use new BadRequest class, refs #1050 * Replace BlobView with new .blob renderer, closes #1050 * .blob downloads on arbitrary queries, closes #1051
This commit is contained in:
parent
d6f9ff7137
commit
78b3eeaad9
12 changed files with 165 additions and 121 deletions
|
|
@ -77,14 +77,3 @@ Note that this URL includes the encoded primary key of the record.
|
|||
Here's that same page as JSON:
|
||||
|
||||
`../people/uk.org.publicwhip%2Fperson%2F10001.json <https://register-of-members-interests.datasettes.com/regmem/people/uk.org.publicwhip%2Fperson%2F10001.json>`_
|
||||
|
||||
.. _BlobView:
|
||||
|
||||
Blob
|
||||
====
|
||||
|
||||
SQLite databases can contain binary data, stored in a ``BLOB`` column. Datasette makes the content of these columns available to download directly, at URLs that look like the following::
|
||||
|
||||
/database-name/table-name/-/blob/row-identifier/column-name.blob
|
||||
|
||||
Binary content is also made available as a base64 encoded string in the ``.json`` representation of the row.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue