[#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:
@ -12,13 +12,16 @@ pub struct Adventurer
|
||||
/// The full name of the adventurer.
|
||||
pub name: String,
|
||||
|
||||
/// A unique handle or username for the adventurer (e.g., used in URLs or mentions).
|
||||
/// A unique handle or username for the adventurer (e.g., used in URLs or
|
||||
/// mentions).
|
||||
pub handle: String,
|
||||
|
||||
/// A link to the adventurer's profile (e.g., personal website, GitHub, etc.).
|
||||
/// A link to the adventurer's profile (e.g., personal website, GitHub,
|
||||
/// etc.).
|
||||
pub profile: String,
|
||||
|
||||
/// A URL or path to an image representing the adventurer (e.g., avatar or portrait).
|
||||
/// A URL or path to an image representing the adventurer (e.g., avatar or
|
||||
/// portrait).
|
||||
pub image: String,
|
||||
|
||||
/// A short descriptive text or tagline about the adventurer.
|
||||
@ -27,6 +30,4 @@ pub struct Adventurer
|
||||
|
||||
|
||||
|
||||
impl Adventurer
|
||||
{
|
||||
}
|
||||
impl Adventurer {}
|
||||
|
||||
Reference in New Issue
Block a user