mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-25 02:14:31 +02:00
Implemented and documented sqlite-utils insert --all
This commit is contained in:
parent
f1569c9f7f
commit
e66299c6ed
3 changed files with 38 additions and 3 deletions
|
|
@ -785,6 +785,8 @@ def insert_upsert_implementation(
|
|||
docs = tracker.wrap(docs)
|
||||
elif lines:
|
||||
docs = ({"line": line.strip()} for line in decoded)
|
||||
elif all:
|
||||
docs = ({"all": decoded.read()},)
|
||||
elif convert:
|
||||
fn = _compile_code(convert, imports)
|
||||
docs = (fn(line) for line in decoded)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue