//! SQLite pool — init before `FlowApp::serve()`.
usesqlx::sqlite::SqlitePoolOptions;usestd::sync::OnceLock;staticPOOL:OnceLock<sqlx::SqlitePool>=OnceLock::new();pub async fninit_db()->anyhow::Result<()>{let url =std::env::var("DATABASE_URL").unwrap_or_else(|_|"sqlite:local.db".into());let pool =SqlitePoolOptions::new().max_connections(5).connect(&url).await?;sqlx::migrate!("./migrations").run(&pool).await?;POOL.set(pool).map_err(|_|anyhow::anyhow!("database pool already initialized"))?;Ok(())}pubfnpool()->&'staticsqlx::SqlitePool{POOL.get().expect("call db::init_db() before FlowApp::serve()")}