mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-12 03:24:23 +02:00
Prior to sqlite-utils 4.0
Refs https://github.com/simonw/sqlite-utils/issues/652#issuecomment-2864945717
This commit is contained in:
parent
e9a6b4c176
commit
efeba1f18c
1 changed files with 1 additions and 1 deletions
|
|
@ -932,7 +932,7 @@ An ``upsert_all()`` method is also available, which behaves like ``insert_all()`
|
|||
Alternative upserts using INSERT OR IGNORE
|
||||
------------------------------------------
|
||||
|
||||
Upserts use ``INSERT INTO ... ON CONFLICT SET``. Prior to ``sqlite-utils 3.x`` (TODO: fill in version) these used a sequence of ``INSERT OR IGNORE`` followed by an ``UPDATE``. This older method is still used for SQLite 3.23.1 and earlier. You can force the older implementation by passing ``use_old_upsert=True`` to the ``Database()`` constructor.
|
||||
Upserts use ``INSERT INTO ... ON CONFLICT SET``. Prior to ``sqlite-utils 4.0`` these used a sequence of ``INSERT OR IGNORE`` followed by an ``UPDATE``. This older method is still used for SQLite 3.23.1 and earlier. You can force the older implementation by passing ``use_old_upsert=True`` to the ``Database()`` constructor.
|
||||
|
||||
.. _python_api_convert:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue