feat(api) add refresh.rs

This commit is contained in:
lumither committed 2024-05-03 02:17:11 +08:00
1 parent dce7a28b89
commit 2d42e933c8
10 files changed
+127 -9

No files matched your search

+7
View File
@@ -5,3 +5,10 @@ CREATE TABLE IF NOT EXISTS Post
content TEXT NOT NULL,
last_update TIMESTAMP
);
INSERT INTO Post (post_id, title, content, last_update)
VALUES (?1, ?2, ?3, ?4)
ON CONFLICT (post_id)
DO UPDATE SET title = excluded.title,
content = excluded.content,
last_update = excluded.last_update