mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-04-25 17:49:58 -04:00
Add link to SQLite docs
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
committed by
Ivan Enderlin
parent
7807ed8bda
commit
7f4e79e2a3
@@ -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 = ?",
|
||||
|
||||
Reference in New Issue
Block a user