Skip to content

Suppress rendering of binary data#442

Merged
simonw merged 1 commit intosimonw:masterfrom
russss:suppress-binary-columns
May 3, 2019
Merged

Suppress rendering of binary data#442
simonw merged 1 commit intosimonw:masterfrom
russss:suppress-binary-columns

Conversation

@russss
Copy link
Contributor

@russss russss commented Apr 29, 2019

Binary columns (including spatialite geographies) get shown as ugly
binary strings in the HTML by default. Nobody wants to see that mess.

Show the size of the column in bytes instead. If you want to decode
the binary data, you can use a plugin to do it.

Binary columns (including spatialite geographies) get shown as ugly
binary strings in the HTML by default. Nobody wants to see that mess.

Show the size of the column in bytes instead. If you want to decode
the binary data, you can use a plugin to do it.
@simonw
Copy link
Owner

simonw commented May 3, 2019

I'm going to merge this and add a unit test.

@simonw simonw merged commit d555baf into simonw:master May 3, 2019
simonw added a commit that referenced this pull request May 3, 2019
@russss russss deleted the suppress-binary-columns branch May 3, 2019 16:45
@simonw
Copy link
Owner

simonw commented May 3, 2019

Demo here: https://latest.datasette.io/fixtures/binary_data

I slightly tweaked the copy:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants