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