sqlite-utils query - to read SQL from stdin, closes #765

This commit is contained in:
Simon Willison 2026-07-07 17:52:26 -07:00
commit 619770bf42
5 changed files with 48 additions and 0 deletions

View file

@ -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