pub trait DeleteBuilder {
// Required methods
fn build(self) -> Result<(), Error>;
fn where_in<T: ToSQLData>(self, column: &str, values: Vec<T>) -> Self;
fn where_not<T: ToSQLData>(self, column: &str, values: Vec<T>) -> Self;
fn where_null(self, column: &str) -> Self;
fn where_not_null(self, column: &str) -> Self;
}
Required Methods§
fn build(self) -> Result<(), Error>
Sourcefn where_in<T: ToSQLData>(self, column: &str, values: Vec<T>) -> Self
fn where_in<T: ToSQLData>(self, column: &str, values: Vec<T>) -> Self
Adds a WHERE clause to your query.
conn.delete("quarterly_earnings", vec!["revenue", "profit"])
.where_in("quarter", vec!["Q2", "Q3"])
.build()?;
Sourcefn where_not<T: ToSQLData>(self, column: &str, values: Vec<T>) -> Self
fn where_not<T: ToSQLData>(self, column: &str, values: Vec<T>) -> Self
Adds a WHERE NOT clause to your query.
conn.delete("quarterly_earnings", vec!["revenue", "profit"])
.where_not("quarter", vec!["Q1", "Q4"])
.build()?;
Sourcefn where_null(self, column: &str) -> Self
fn where_null(self, column: &str) -> Self
Deletes where a cell in a column is NULL.
Sourcefn where_not_null(self, column: &str) -> Self
fn where_not_null(self, column: &str) -> Self
Deletes where a cell in column is not NULL.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.