Fix SQL query
This commit is contained in:
+1
-2
@@ -18,9 +18,8 @@ CREATE TABLE CacheData (
|
||||
selectData:
|
||||
SELECT * FROM CacheData WHERE key = ?;
|
||||
|
||||
-- insert or update data by key
|
||||
insertData:
|
||||
INSERT INTO CacheData VALUES ? ON CONFLICT(key) DO UPDATE SET value = excluded.value, updatedAt = excluded.updatedAt;
|
||||
INSERT OR REPLACE INTO CacheData VALUES ?;
|
||||
|
||||
deleteData:
|
||||
DELETE FROM CacheData WHERE key = ?;
|
||||
|
||||
Reference in New Issue
Block a user