#[cfg(feature = "ssr")] use sqlx::SqlitePool; #[cfg(feature = "ssr")] pub async fn build_db_pool() -> SqlitePool { let database_url = "sqlite:community.db"; let pool = SqlitePool::connect(database_url).await.expect("DB Fehler"); sqlx::migrate!("./migrations").run(&pool).await.expect("Migration Fehler"); pool }