Closed sa68ru closed 3 months ago
Allows use data from Ref via pattern match syntax
async fn example(db: Ref<sea_orm::DatabaseConnection>) -> Result<(), AppError> { ... .exec(&*db).await?; ... } async fn example(Ref(db): Ref<sea_orm::DatabaseConnection>) -> Result<(), AppError> { ... .exec(&db).await?; ... }
Allows use data from Ref via pattern match syntax