Revert "feat: init store module"

Store doesn't seem particularly useful for my needs.

This reverts commits 14007c6e8f and 45701f414b.
This commit is contained in:
Harsh Shandilya 2023-08-04 00:39:53 +05:30
parent 8891667c92
commit 52deb7ca5f
No known key found for this signature in database
13 changed files with 11 additions and 198 deletions

View file

@ -1,31 +0,0 @@
import kotlin.Int;
import kotlin.String;
import kotlin.collections.List;
CREATE TABLE IF NOT EXISTS CachedNewestPost(
pageNumber INTEGER AS Int,
shortId TEXT NOT NULL PRIMARY KEY,
title TEXT NOT NULL,
url TEXT NOT NULL,
description TEXT NOT NULL,
commentCount INTEGER AS Int,
commentsUrl TEXT NOT NULL,
tags TEXT AS List<String> NOT NULL
);
insertPost:
INSERT OR REPLACE
INTO CachedNewestPost
VALUES ?;
getPage:
SELECT *
FROM CachedNewestPost
WHERE pageNumber = ?;
clearPage:
DELETE FROM CachedNewestPost
WHERE pageNumber = ?;
deleteAll:
DELETE FROM CachedNewestPost;

View file

@ -1,14 +0,0 @@
import kotlin.Int;
import kotlin.String;
import kotlin.collections.List;
CREATE TABLE IF NOT EXISTS CachedNewestPost(
pageNumber INTEGER AS Int,
shortId TEXT NOT NULL PRIMARY KEY,
title TEXT NOT NULL,
url TEXT NOT NULL,
description TEXT NOT NULL,
commentCount INTEGER AS Int,
commentsUrl TEXT NOT NULL,
tags TEXT AS List<String> NOT NULL
);