[−][src]Struct quaint::ast::Delete
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]
T: Into<Table<'a>>,
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]
T: Into<ConditionTree<'a>>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,