Function subtract
Source pub fn subtract<T>(value: impl IntoExpr<T>) -> Assignment<T>
Expand description
Subtract a value from a numeric field (col = col - value).
Mirror of add. See its docs for the Numeric bound. Atomic
against the existing column value on every backend.
§Examples
ⓘuser.update()
.balance(stmt::subtract(5))
.exec(&mut db)
.await?;