mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-24 09:54:31 +02:00
Better validation for upsert --pk, closes #390
This commit is contained in:
parent
4c6023452c
commit
2b20957b18
3 changed files with 79 additions and 59 deletions
|
|
@ -253,8 +253,6 @@ See :ref:`cli_upsert`.
|
|||
incoming record has a primary key that matches an existing record the existing
|
||||
record will be updated.
|
||||
|
||||
The --pk option is required.
|
||||
|
||||
Example:
|
||||
|
||||
echo '[
|
||||
|
|
@ -264,6 +262,7 @@ See :ref:`cli_upsert`.
|
|||
|
||||
Options:
|
||||
--pk TEXT Columns to use as the primary key, e.g. id
|
||||
[required]
|
||||
--flatten Flatten nested JSON objects, so {"a": {"b": 1}}
|
||||
becomes {"a_b": 1}
|
||||
--nl Expect newline-delimited JSON
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue