Skip to content

Commit

Permalink
Get values from UpdateStatement
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 authored and ikrivosheev committed Jan 12, 2023
1 parent 48f7fdd commit e63f082
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 @@ -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<SimpleExpr>)> {
&self.values
}
}

impl QueryStatementBuilder for UpdateStatement {
Expand Down

0 comments on commit e63f082

Please sign in to comment.