not sure yet about exemplar
This commit is contained in:
parent
2cc0337450
commit
21b7554af1
2 changed files with 7 additions and 1 deletions
|
@ -12,7 +12,7 @@ mdka = "1.2.10" #Not Sure if this is useful...
|
||||||
rusqlite = {version=">=0.36",features=['bundled']}
|
rusqlite = {version=">=0.36",features=['bundled']}
|
||||||
html2md = "0.2"
|
html2md = "0.2"
|
||||||
regex = "1"
|
regex = "1"
|
||||||
exemplar = ">=0.35.0"
|
#exemplar = ">=0.35.0"
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
|
|
|
@ -14,6 +14,10 @@ struct Item{
|
||||||
|
|
||||||
const DB_LOCATION: &str = "rsscar.db";
|
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' (
|
const feeds_table_create: &str = "CREATE TABLE IF NOT EXISTS 'feeds' (
|
||||||
'feedID' INTEGER NOT NULL,
|
'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' (
|
const feeds_index_create: &str = "CREATE INDEX IF NOT EXISTS 'subscribed_feeds_idx' ON 'feeds' (
|
||||||
'feedID' ASC
|
'feedID' ASC
|
||||||
) WHERE 'subscribed' = 1;";
|
) WHERE 'subscribed' = 1;";
|
||||||
|
|
||||||
|
/* */
|
||||||
const items_table_create: &str = "CREATE TABLE IF NOT EXISTS 'items' (
|
const items_table_create: &str = "CREATE TABLE IF NOT EXISTS 'items' (
|
||||||
'itemID' INTEGER NOT NULL,
|
'itemID' INTEGER NOT NULL,
|
||||||
'title' TEXT NOT NULL,
|
'title' TEXT NOT NULL,
|
||||||
|
|
Loading…
Reference in a new issue