Struct query_builder::query_builder::DeleteQuery
[−]
[src]
pub struct DeleteQuery<'a, 'c> { pub whre: BTreeMap<&'a str, Value<'c>>, // some fields omitted }
Struct representing a SQL Delete Statement
Fields
whre: BTreeMap<&'a str, Value<'c>>
Methods
impl<'a, 'c> DeleteQuery<'a, 'c>
[src]
pub fn from(table: &'a str) -> DeleteQuery
[src]
Return a new DeleteQuery
that deletes data from table table
pub fn limit(&mut self, limit: usize)
[src]
Sets the limit of items to delete
pub fn get_limit(&self) -> Option<usize>
[src]
Returns the limit of the DeleteQuery
pub fn clear_limit(&mut self)
[src]
Removes the limit from the DeleteQuery
pub fn as_string(&self) -> String
[src]
Return a String
representing the struct