Skip to content

Commit

Permalink
Merge pull request #578 from SeaQL/get-values-from-update-statement
Browse files Browse the repository at this point in the history
Get values from update statement
  • Loading branch information
ikrivosheev authored Jan 12, 2023
2 parents 26e0382 + 70d5605 commit 765d603
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/query/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,11 @@ impl UpdateStatement {
pub fn with(self, clause: WithClause) -> WithQuery {
clause.query(self)
}

/// Get column values
pub fn get_values(&self) -> &Vec<(DynIden, Box<SimpleExpr>)> {
&self.values
}
}

impl QueryStatementBuilder for UpdateStatement {
Expand Down

0 comments on commit 765d603

Please sign in to comment.