//! Dioxus components that will display a Tavern blogging system Blog. mod info; #[cfg(feature = "server")] use tavern::Database; pub use crate::info::{get_name, get_version}; #[cfg(feature = "server")] pub async fn init_database

(path: P) -> Result, Box> where P: AsRef { let db = Database::open(path).await?; Ok(std::sync::Arc::new(db)) }