Changelog for 1.1 + docs for --ignore/ignore=True

This commit is contained in:
Simon Willison 2019-05-28 22:06:22 -07:00
commit 26b2cf3418
3 changed files with 15 additions and 0 deletions

View file

@ -224,6 +224,10 @@ You can import all three records into an automatically created ``dogs`` table an
$ sqlite-utils insert dogs.db dogs dogs.json --pk=id
You can skip inserting any records that have a primary key that already exists using ``--ignore``::
$ sqlite-utils insert dogs.db dogs dogs.json --ignore
You can also import newline-delimited JSON using the ``--nl`` option. Since `Datasette <https://datasette.readthedocs.io/>`__ can export newline-delimited JSON, you can combine the two tools like so::
$ curl -L "https://latest.datasette.io/fixtures/facetable.json?_shape=array&_nl=on" \