MCPcopy Create free account
hub / github.com/belchior/sql_query_builder / where_or

Method where_or

src/delete/delete.rs:271–274  ·  view source on GitHub ↗

The `where` clause that concatenate multiples calls using the OR operator. If you intended to use the `and` operator you should use the [where_clause](Delete::where_clause) method # Example ``` # use sql_query_builder as sql; let query = sql::Delete::new() .where_clause("login = 'foo'") .where_or("login = 'bar'") .as_string(); # let expected = "WHERE login = 'foo' OR login = 'bar'"; # assert_eq

(mut self, condition: &str)

Source from the content-addressed store, hash-verified

269 /// OR login = 'bar'
270 /// ```
271 pub fn where_or(mut self, condition: &str) -> Self {
272 push_unique(&mut self._where, (LogicalOperator::Or, condition.trim().to_string()));
273 self
274 }
275}
276
277#[cfg(any(feature = "postgresql", feature = "sqlite", feature = "mysql"))]

Calls 1

push_uniqueFunction · 0.85