Struct query_builder::UpdateQuery
[−]
[src]
pub struct UpdateQuery<'a, 'c> { pub set: BTreeMap<&'a str, Value<'c>>, pub whre: BTreeMap<&'a str, Value<'c>>, // some fields omitted }
Struct representing an SQL Update statement
Fields
set: BTreeMap<&'a str, Value<'c>>
whre: BTreeMap<&'a str, Value<'c>>
Methods
impl<'a, 'c> UpdateQuery<'a, 'c>
[src]
pub fn update(table: &'a str) -> UpdateQuery
[src]
Returns a new UpdateQuery
that updates the table table
pub fn limit(&mut self, l: usize)
[src]
Set the limit of the Query to the value of l
pub fn has_limit(&self) -> bool
[src]
Returns whether or not the UpdateQuery
has a limit
pub fn get_limit(&self) -> Option<usize>
[src]
Returns the limit of the UpdateQuery
if there is one
pub fn as_string(&self) -> String
[src]
Returns the String representation of the UpdateQuery
Trait Implementations
impl<'a, 'c> Debug for UpdateQuery<'a, 'c>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a, 'c> Display for UpdateQuery<'a, 'c>
[src]
fn fmt(&self, f: &mut Formatter) -> FormatResult
[src]
Formats the value using the given formatter. Read more