From e63f082da8e148c0474f4f20c569dacf3131eb1b Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Tue, 10 Jan 2023 22:04:07 +0800 Subject: [PATCH] Get values from UpdateStatement --- src/query/update.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/query/update.rs b/src/query/update.rs index f4db41771..4fa2acaf6 100644 --- a/src/query/update.rs +++ b/src/query/update.rs @@ -287,6 +287,11 @@ impl UpdateStatement { pub fn with(self, clause: WithClause) -> WithQuery { clause.query(self) } + + /// Get column values + pub fn get_values(&self) -> &Vec<(DynIden, Box)> { + &self.values + } } impl QueryStatementBuilder for UpdateStatement {