sqlite-utils memory --help now mentions --schema

This commit is contained in:
Simon Willison 2021-06-28 09:35:01 -07:00
commit 8286a66413

View file

@ -1212,6 +1212,10 @@ def memory(
cat animals.csv | sqlite-utils memory stdin:csv places.dat:nl \\
"select * from stdin where place_id in (select id from places)"
Use --schema to view the SQL schema of any imported files:
\b
sqlite-utils memory animals.csv --schema
"""
db = sqlite_utils.Database(memory=True)
# If --dump or --save used but no paths detected, assume SQL query is a path: