Skip to content

Commit 1feb0c4

Browse files
committed
Docs for insert with multiple --pk, refs #621
1 parent da92a30 commit 1feb0c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/cli.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,11 +1088,13 @@ You can import all three records into an automatically created ``dogs`` table an
10881088
10891089
sqlite-utils insert dogs.db dogs dogs.json --pk=id
10901090
1091+
Pass ``--pk`` multiple times to define a compound primary key.
1092+
10911093
You can skip inserting any records that have a primary key that already exists using ``--ignore``:
10921094

10931095
.. code-block:: bash
10941096
1095-
sqlite-utils insert dogs.db dogs dogs.json --ignore
1097+
sqlite-utils insert dogs.db dogs dogs.json --pk=id --ignore
10961098
10971099
You can delete all the existing rows in the table before inserting the new records using ``--truncate``:
10981100

0 commit comments

Comments
 (0)