pub fn new(database_url: String) -> Result<std::sync::Arc<dyn crate::auth::AuthProvider>, String> {
  let manager = diesel::r2d2::ConnectionManager::<diesel::pg::PgConnection>::new(database_url);
  Ok(std::sync::Arc::new(UruDatabase {
    connection: diesel::r2d2::Pool::builder().build(manager).map_err(|e| format!("Failed to create Uru database connection: {}", e))?,
  }))
}
/// Access a Myst Online: Uru Live database for accounts
Access a Myst Online: Uru Live database for accounts
Access a Myst Online : Uru Live database for accounts
pub fn new(database_url: String) -> Result<std::sync::Arc<dyn crate::auth::AuthProvider>, String> {
  let manager = diesel::r2d2::ConnectionManager::<diesel::pg::PgConnection>::new(database_url);
  Ok(std::sync::Arc::new(UruDatabase {
    connection: diesel::r2d2::Pool::builder().build(manager).map_err(|e| format!("Failed to create Uru database connection: {}", e))?,
  }))
}
pub fn new ( database_url : String ) -> Result < std :: sync :: Arc < dyn crate :: auth :: AuthProvider > , String > { let manager = diesel :: r2d2 :: ConnectionManager :: < diesel :: pg :: PgConnection > :: new ( database_url ) ; Ok ( std :: sync :: Arc :: new ( UruDatabase { connection : diesel :: r2d2 :: Pool :: builder ( ) . build ( manager ) . map_err ( | e | format ! ( " " e ) ) ? , } ) ) }
Access a Myst Online: Uru Live database for accounts
Access a Myst Online : Uru Live database for accounts
database_url
String
database_url
String