We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da92a30 commit 1feb0c4Copy full SHA for 1feb0c4
docs/cli.rst
@@ -1088,11 +1088,13 @@ You can import all three records into an automatically created ``dogs`` table an
1088
1089
sqlite-utils insert dogs.db dogs dogs.json --pk=id
1090
1091
+Pass ``--pk`` multiple times to define a compound primary key.
1092
+
1093
You can skip inserting any records that have a primary key that already exists using ``--ignore``:
1094
1095
.. code-block:: bash
1096
- sqlite-utils insert dogs.db dogs dogs.json --ignore
1097
+ sqlite-utils insert dogs.db dogs dogs.json --pk=id --ignore
1098
1099
You can delete all the existing rows in the table before inserting the new records using ``--truncate``:
1100
0 commit comments