From 7509bd2bdfa9b459879060440b35644cb7bd0fe1 Mon Sep 17 00:00:00 2001 From: davidemazzocchi Date: Thu, 16 Oct 2025 15:18:30 +0200 Subject: [PATCH] doc: update README with the new upsert function for catalog --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index efaaa67..8e52cbb 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ fn main() { price: 125000, }; // Insert the new laptop into the catalog. Note that at this time the product is in memory. - catalog.insert(new_laptop); + catalog.upsert(new_laptop); // Persist the changes in the catalog to the database. catalog.persist().unwrap(); // Remove the SQLite database file.