not sure yet about exemplar

This commit is contained in:
Gabriel 2025-05-28 14:53:05 -04:00
parent 2cc0337450
commit 21b7554af1
2 changed files with 7 additions and 1 deletions

View file

@ -12,7 +12,7 @@ mdka = "1.2.10" #Not Sure if this is useful...
rusqlite = {version=">=0.36",features=['bundled']}
html2md = "0.2"
regex = "1"
exemplar = ">=0.35.0"
#exemplar = ">=0.35.0"
[profile.dev]
opt-level = 3

View file

@ -14,6 +14,10 @@ struct Item{
const DB_LOCATION: &str = "rsscar.db";
/*
"on conflict ignore" HAS to be replaced.
What needs to happen is that when a story is already stored the existing item has to be updated.
*/
const feeds_table_create: &str = "CREATE TABLE IF NOT EXISTS 'feeds' (
'feedID' INTEGER NOT NULL,
@ -29,6 +33,8 @@ const feeds_table_create: &str = "CREATE TABLE IF NOT EXISTS 'feeds' (
const feeds_index_create: &str = "CREATE INDEX IF NOT EXISTS 'subscribed_feeds_idx' ON 'feeds' (
'feedID' ASC
) WHERE 'subscribed' = 1;";
/* */
const items_table_create: &str = "CREATE TABLE IF NOT EXISTS 'items' (
'itemID' INTEGER NOT NULL,
'title' TEXT NOT NULL,