//! Dioxus components that will display a Tavern blogging system Blog.
mod info;
use tavern::Database;
pub use crate::info::{get_name, get_version};
pub async fn init_database
(path: P)
-> Result, Box>
where P: AsRef
{
let db = Database::open(path).await?;
Ok(std::sync::Arc::new(db))
}