db, add item and functions to get items
Creates item. It's pretty barebowns until I implement fetching. I also added get functions for feed and channel to get items with.
This commit is contained in:
parent
09b26c1b39
commit
55c3e967bc
5 changed files with 179 additions and 2 deletions
|
|
@ -25,6 +25,11 @@ pub const FEED_TITLE: &str = "My Feed!";
|
|||
pub const FEED_TITLE2: &str = "My Second Feed!";
|
||||
pub const CHANNEL_TITLE: &str = "My Channel!";
|
||||
pub const CHANNEL_DESC: &str = "My Channel's description";
|
||||
pub const ITEM_GUID: &str = "item-guid";
|
||||
pub const ITEM_GUID2: &str = "item-guid2";
|
||||
pub const ITEM_TITLE: &str = "My Item!";
|
||||
pub const ITEM_DESC: &str = "My Item's description";
|
||||
pub const ITEM_CONT: &str = "The content of my Item";
|
||||
|
||||
pub fn get_datetime() -> DateTime<Utc> {
|
||||
Utc.with_ymd_and_hms(2020,1,1,0,0,0).unwrap()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue