mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-16 05:24:26 +02:00
sqlite-utils query - to read SQL from stdin, closes #765
This commit is contained in:
parent
353baf280d
commit
619770bf42
5 changed files with 48 additions and 0 deletions
|
|
@ -109,6 +109,10 @@ See :ref:`cli_query`.
|
|||
"select * from chickens where age > :age" \
|
||||
-p age 1
|
||||
|
||||
Pass "-" as the SQL to read the query from standard input:
|
||||
|
||||
echo "select * from chickens" | sqlite-utils data.db -
|
||||
|
||||
Options:
|
||||
--attach <TEXT FILE>... Additional databases to attach - specify alias and
|
||||
filepath
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue