mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Fix SQL query
This commit is contained in:
+1
-2
@@ -18,9 +18,8 @@ CREATE TABLE CacheData (
|
|||||||
selectData:
|
selectData:
|
||||||
SELECT * FROM CacheData WHERE key = ?;
|
SELECT * FROM CacheData WHERE key = ?;
|
||||||
|
|
||||||
-- insert or update data by key
|
|
||||||
insertData:
|
insertData:
|
||||||
INSERT INTO CacheData VALUES ? ON CONFLICT(key) DO UPDATE SET value = excluded.value, updatedAt = excluded.updatedAt;
|
INSERT OR REPLACE INTO CacheData VALUES ?;
|
||||||
|
|
||||||
deleteData:
|
deleteData:
|
||||||
DELETE FROM CacheData WHERE key = ?;
|
DELETE FROM CacheData WHERE key = ?;
|
||||||
|
|||||||
Reference in New Issue
Block a user