From 7f4e79e2a3bb07fa189c62987a06b3f78f2e4286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Mon, 2 Sep 2024 16:07:50 +0200 Subject: [PATCH] Add link to SQLite docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kévin Commaille --- crates/matrix-sdk-sqlite/src/event_cache_store.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/matrix-sdk-sqlite/src/event_cache_store.rs b/crates/matrix-sdk-sqlite/src/event_cache_store.rs index 360feff3b..51afb9e5d 100644 --- a/crates/matrix-sdk-sqlite/src/event_cache_store.rs +++ b/crates/matrix-sdk-sqlite/src/event_cache_store.rs @@ -164,6 +164,7 @@ impl EventCacheStore for SqliteEventCacheStore { .with_transaction::<_, rusqlite::Error, _>(move |txn| { // Update the last access. // We need to do this first so the transaction is in write mode right away. + // See: https://sqlite.org/lang_transaction.html#read_transactions_versus_write_transactions txn.execute( "UPDATE media SET last_access = CAST(strftime('%s') as INT) \ WHERE uri = ? AND format = ?",