Fix SQL query
This commit is contained in:
parent
3dd2a60b3a
commit
c8773c890f
1 changed files with 1 additions and 2 deletions
|
|
@ -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 = ?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue