From 727d83c9d7fcf510b7d499ca4ced0f33c31ed48f Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Mon, 10 Jul 2023 21:55:26 +0800 Subject: [PATCH] Docs --- src/executor/update.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/executor/update.rs b/src/executor/update.rs index aef8b4d5..cf8938a5 100644 --- a/src/executor/update.rs +++ b/src/executor/update.rs @@ -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(self, db: &'a C) -> Result, DbErr> where C: ConnectionTrait,