#[tokio::main] asyncfnmain()->surrealdb::Result<()> { // Choose an endpoint at runtime using the `DB_ENDPOINT` environment variable // or fallback to the memory engine. letendpoint=env::var("DB_ENDPOINT").unwrap_or_else(|_| "mem://".to_owned()); DB.connect(endpoint).await?; Ok(()) }