mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-16 05:24:26 +02:00
Implemented sqlite-utils insert --lines
This commit is contained in:
parent
a5fdeb18e3
commit
9d5b8e23cd
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