mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 17:34:32 +02:00
Implemented sqlite-utils insert --lines
This commit is contained in:
parent
d1ed2f423d
commit
f1569c9f7f
3 changed files with 26 additions and 0 deletions
|
|
@ -783,6 +783,8 @@ def insert_upsert_implementation(
|
|||
if detect_types:
|
||||
tracker = TypeTracker()
|
||||
docs = tracker.wrap(docs)
|
||||
elif lines:
|
||||
docs = ({"line": line.strip()} for line in decoded)
|
||||
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