Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

insert-files accept multiple --pk #621

Closed
simonw opened this issue Mar 17, 2024 · 1 comment
Closed

insert-files accept multiple --pk #621

simonw opened this issue Mar 17, 2024 · 1 comment
Labels

Comments

@simonw
Copy link
Owner

simonw commented Mar 17, 2024

Looking at https://sqlite-utils.datasette.io/en/latest/cli-reference.html there are other commands that should accept multiple primary keys as well:

  • insert
  • upsert
  • insert-files

The transform command accepts multiple --pk already.

Originally posted by @simonw in #620 (comment)

@simonw simonw changed the title insert/upsert/insert-files accept multiple --pk insert-files accept multiple --pk Mar 17, 2024
@simonw
Copy link
Owner Author

simonw commented Mar 17, 2024

No actually insert and upsert already support that:

click.option(
"--pk",
help="Columns to use as the primary key, e.g. id",
multiple=True,
required=require_pk,
),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant