This commit is contained in:
Chris Tsang 2023-07-10 21:55:26 +08:00
parent 07b1e78226
commit 727d83c9d7

View File

@ -47,6 +47,10 @@ where
}
/// Execute an update operation and return the updated model (use `RETURNING` syntax if database supported)
///
/// # Panics
///
/// Panics if the database backend does not support `UPDATE RETURNING`.
pub async fn exec_with_returning<C>(self, db: &'a C) -> Result<Vec<E::Model>, DbErr>
where
C: ConnectionTrait,