Trait DeleteBuilder

Source
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§

Source

fn build(self) -> Result<(), Error>

Source

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()?;
Source

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()?;
Source

fn where_null(self, column: &str) -> Self

Deletes where a cell in a column is NULL.

Source

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.

Implementors§