Skip to content

Releases: simonw/sqlite-utils

2.0.1

05 Jan 17:33
Compare
Choose a tag to compare

The .upsert() and .upsert_all() methods now raise a sqlite_utils.db.PrimaryKeyRequired exception if you call them without specifying the primary key column using pk= (#73).

2.0

30 Dec 06:26
Compare
Choose a tag to compare
2.0

This release changes the behaviour of upsert. It’s a breaking change, hence 2.0.

The upsert command-line utility and the .upsert() and .upsert_all() Python API methods have had their behaviour altered. They used to completely replace the affected records: now, they update the specified values on existing records but leave other columns unaffected.

See Upserting data using the Python API and Upserting data using the CLI for full details.

If you want the old behaviour - where records were completely replaced - you can use $ sqlite-utils insert ... --replace on the command-line and .insert(..., replace=True) and .insert_all(..., replace=True) in the Python API. See Insert-replacing data using the Python API and Insert-replacing data using the CLI for more.

For full background on this change, see issue #66.

1.12.1

07 Nov 05:00
0a0cec3
Compare
Choose a tag to compare

1.12

07 Nov 05:00
Compare
Choose a tag to compare

1.11

03 Sep 01:03
Compare
Choose a tag to compare

1.10

03 Sep 00:46
Compare
Choose a tag to compare

1.9

03 Sep 00:46
Compare
Choose a tag to compare

1.8

03 Sep 00:45
Compare
Choose a tag to compare

1.7.1

28 Jul 12:05
Compare
Choose a tag to compare

1.7

28 Jul 12:03
Compare
Choose a tag to compare