Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress rendering of binary data #442

Merged
merged 1 commit into from May 3, 2019
Merged

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 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
1 check passed
@russss russss deleted the suppress-binary-columns branch May 3, 2019
@simonw
Copy link
Owner

@simonw 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
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants