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
Inserting files by piping them in should work - but since a filename cannot be derived this will need a --name blah.gif option. cat blah.gif | sqlite-utils insert-files files.db files - --name=blah.gif
Inserting files by piping them in should work - but since a filename cannot be derived this will need a --name blah.gif option.
--name blah.gif
cat blah.gif | sqlite-utils insert-files files.db files - --name=blah.gif
Originally posted by @simonw in #122 (comment)
The text was updated successfully, but these errors were encountered:
I tried to get this working but it was a bit tricky because - doesn't behave like a regular pathlib.Path - needs a bit more thought on how the implementation would work.
-
pathlib.Path
Sorry, something went wrong.
Maybe could do this using an improved version of this lambda? Could teach it to look for - and read from sys.stdin if it sees it.
sys.stdin
sqlite-utils/sqlite_utils/cli.py
Line 839 in 710454d
8fe1e6d
Documentation at the bottom of this section: https://github.com/simonw/sqlite-utils/blob/8fe1e6d1be021aeeb8f08b0f77f03b75a83b6f75/docs/cli.rst#inserting-binary-data-from-files
Release 2.14
a8b922b
Refs #127, #130
No branches or pull requests
Originally posted by @simonw in #122 (comment)
The text was updated successfully, but these errors were encountered: