[][src]Struct quaint::ast::Delete

pub struct Delete<'a> { /* fields omitted */ }

A builder for a DELETE statement.

Methods

impl<'a> Delete<'a>[src]

pub fn from_table<T>(table: T) -> Self where
    T: Into<Table<'a>>, 
[src]

Creates a new DELETE statement for the given table.

let query = Delete::from_table("users");
let (sql, _) = Sqlite::build(query);

assert_eq!("DELETE FROM `users`", sql);

pub fn so_that<T>(self, conditions: T) -> Self where
    T: Into<ConditionTree<'a>>, 
[src]

Adds WHERE conditions to the query. See Comparable for more examples.

let query = Delete::from_table("users").so_that("bar".equals(false));
let (sql, params) = Sqlite::build(query);

assert_eq!("DELETE FROM `users` WHERE `bar` = ?", sql);
assert_eq!(vec![ParameterizedValue::Boolean(false)], params);

Trait Implementations

impl<'a> Clone for Delete<'a>[src]

impl<'a> Debug for Delete<'a>[src]

impl<'a> From<Delete<'a>> for Query<'a>[src]

impl<'a> PartialEq<Delete<'a>> for Delete<'a>[src]

impl<'a> StructuralPartialEq for Delete<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Delete<'a>

impl<'a> Send for Delete<'a>

impl<'a> Sync for Delete<'a>

impl<'a> Unpin for Delete<'a>

impl<'a> UnwindSafe for Delete<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,