Struct deuterium::UpdateQuery
[−]
[src]
pub struct UpdateQuery<T, L, M> { /* fields omitted */ }
Methods
impl<T, L, M> UpdateQuery<T, L, M>
[src]
pub fn is_only(&self) -> bool
[src]
pub fn is_all(&self) -> bool
[src]
pub fn get_table(&self) -> &SharedTable
[src]
pub fn get_updates(&self) -> &Vec<Rc<Box<FieldUpd + 'static>>>
[src]
pub fn get_from(&self) -> &Option<Vec<SharedFrom>>
[src]
pub fn get_where(&self) -> &Option<SharedPredicate>
[src]
pub fn get_returning(&self) -> &Option<Select>
[src]
impl<T, L, M> UpdateQuery<T, L, M>
[src]
pub fn new(table: &Table) -> UpdateQuery<T, L, M>
[src]
pub fn only(self) -> UpdateQuery<T, L, M>
[src]
pub fn from(self, from: &From) -> UpdateQuery<T, L, M>
[src]
pub fn field<F: FieldUpd>(self, update: F) -> UpdateQuery<T, L, M>
[src]
pub fn all(self) -> UpdateQuery<T, L, M>
[src]
impl<T, L, M> UpdateQuery<T, L, M>
[src]
pub fn returning_1<R: Clone>(
self,
field: &Expression<R>
) -> UpdateQuery<R, LimitMany, M>
[src]
self,
field: &Expression<R>
) -> UpdateQuery<R, LimitMany, M>
pub fn returning_2<R1: Clone, R2: Clone>(
self,
field1: &Expression<R1>,
field2: &Expression<R2>
) -> UpdateQuery<(R1, R2), LimitMany, M>
[src]
self,
field1: &Expression<R1>,
field2: &Expression<R2>
) -> UpdateQuery<(R1, R2), LimitMany, M>
pub fn returning(
self,
fields: &[&UntypedExpression]
) -> UpdateQuery<(), LimitMany, M>
[src]
self,
fields: &[&UntypedExpression]
) -> UpdateQuery<(), LimitMany, M>
pub fn returning_all(self) -> UpdateQuery<(), LimitMany, M>
[src]
pub fn no_returning(self) -> UpdateQuery<(), NoResult, M>
[src]
Trait Implementations
impl<T: Clone, L: Clone, M: Clone> Clone for UpdateQuery<T, L, M>
[src]
fn clone(&self) -> UpdateQuery<T, L, M>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Debug, L: Debug, M: Debug> Debug for UpdateQuery<T, L, M>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more