mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-12 11:34:09 +02:00
add lazy=True to avoid opening the file early in case of failure
This commit is contained in:
parent
1d050dcdc7
commit
b006a4c685
1 changed files with 1 additions and 1 deletions
|
|
@ -865,7 +865,7 @@ def insert_upsert_options(*, require_pk=False):
|
|||
required=True,
|
||||
),
|
||||
click.argument("table"),
|
||||
click.argument("file", type=click.File("rb"), required=True),
|
||||
click.argument("file", type=click.File("rb", lazy=True), required=True),
|
||||
click.option(
|
||||
"--pk",
|
||||
help="Columns to use as the primary key, e.g. id",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue