mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-24 01:44:31 +02:00
Changelog for 1.1 + docs for --ignore/ignore=True
This commit is contained in:
parent
50e2f94b58
commit
26b2cf3418
3 changed files with 15 additions and 0 deletions
|
|
@ -164,6 +164,8 @@ The ``foreign_keys`` argument takes a sequence of three-tuples, each one specify
|
|||
("author_id", "authors", "id")
|
||||
])
|
||||
|
||||
.. _python_api_bulk_inserts:
|
||||
|
||||
Bulk inserts
|
||||
============
|
||||
|
||||
|
|
@ -198,6 +200,8 @@ The function can accept an iterator or generator of rows and will commit them ac
|
|||
"name": "Name {}".format(i),
|
||||
} for i in range(10000)), batch_size=1000)
|
||||
|
||||
You can skip inserting any records that have a primary key that already exists using ``ignore=True``. This works with both ``.insert({...}, ignore=True)`` and ``.insert_all([...], ignore=True)``.
|
||||
|
||||
Upserting data
|
||||
==============
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue