[#2] Database integration complete.
Posts and Authors can now be inserted and retrieved from the database created. It was decided to use a SQLite database for it high read spead and ease of use/maintenance. A build feature was created to seperate how the library is being used. If you are making the database and storing posts, then use the publisher flag. If you are just reading from a database then do not use the publisher flag. This was also set to change the tale contents from a PathBuf to the String of HTML blog data without having to create a whole new data object. An example and a test were made. Test coverage needs to be increased however.
This commit is contained in:
10
src/lib.rs
10
src/lib.rs
@ -1,15 +1,19 @@
|
||||
//! A blogging system that will allow you to write your blog in Markdown and then display it in HTML using Dioxus.
|
||||
//! A blogging system that will allow you to write your blog in Markdown and
|
||||
//! then display it in HTML using Dioxus.
|
||||
|
||||
mod info;
|
||||
|
||||
mod adventurer;
|
||||
#[cfg(feature = "publisher")]
|
||||
mod converter;
|
||||
mod database;
|
||||
mod tale;
|
||||
mod tavern;
|
||||
|
||||
|
||||
|
||||
pub use crate::info::{get_name, get_version};
|
||||
|
||||
pub use crate::adventurer::Adventurer;
|
||||
pub use crate::database::Database;
|
||||
pub use crate::info::{get_name, get_version};
|
||||
pub use crate::tale::Tale;
|
||||
pub use crate::tavern::Tavern;
|
||||
|
||||
Reference in New Issue
Block a user