mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-08-03 16:04:13 +02:00
--raw-lines option, closes #539
This commit is contained in:
parent
8f9a729e8a
commit
373b7886d2
4 changed files with 70 additions and 3 deletions
|
|
@ -239,6 +239,9 @@ For example, to retrieve a binary image from a ``BLOB`` column and store it in a
|
|||
|
||||
$ sqlite-utils photos.db "select contents from photos where id=1" --raw > myphoto.jpg
|
||||
|
||||
To return the first column of each result as raw data, separated by newlines, use ``--raw-lines``::
|
||||
|
||||
$ sqlite-utils photos.db "select caption from photos" --raw-lines > captions.txt
|
||||
|
||||
.. _cli_query_parameters:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue