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

--raw option for outputting binary content #123

Closed
simonw opened this issue Jul 26, 2020 · 0 comments
Closed

--raw option for outputting binary content #123

simonw opened this issue Jul 26, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@simonw
Copy link
Owner

simonw commented Jul 26, 2020

Related to the insert-files work in #122 - it should be easy to get binary data back out of the database again.

One way to do that could be:

sqlite-utils files.db "select content from files where key = 'foo.jpg'" --raw

The --raw option would cause just the contents of the first column to be output directly to stdout.

@simonw simonw added the enhancement New feature or request label Jul 26, 2020
simonw added a commit that referenced this issue Jul 26, 2020
@simonw simonw closed this as completed Jul 26, 2020
simonw added a commit that referenced this issue Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant