Skip to content

Commit

Permalink
Add insert clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
outadoc committed Aug 17, 2024
1 parent d73d928 commit 88bc7c1
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,15 @@ WHERE id NOT IN (
UNION
SELECT category_id FROM FutureStream
);

addPastStream:
INSERT OR REPLACE INTO PastStream (id, title, user_id, start_time, end_time, category_id)
VALUES (?, ?, ?, ?, ?, ?);

addLiveStream:
INSERT OR REPLACE INTO LiveStream (id, title, user_id, start_time, category_id, tags, viewer_count)
VALUES (?, ?, ?, ?, ?, ?, ?);

addFutureStream:
INSERT OR REPLACE INTO FutureStream (id, title, user_id, start_time, end_time, category_id)
VALUES (?, ?, ?, ?, ?, ?);

0 comments on commit 88bc7c1

Please sign in to comment.