Struct deuterium::InsertQuery
[−]
[src]
pub struct InsertQuery<T, V, M, RT, RL> { /* fields omitted */ }
Methods
impl<T: Clone, V: Clone, M: Clone, RT: Clone, RL: Clone> InsertQuery<T, V, M, RT, RL>
[src]
pub fn new(into: &Table) -> InsertQuery<T, V, M, RT, RL>
[src]
pub fn new_with_cols(
into: &Table,
cols: Vec<SharedField>
) -> InsertQuery<T, V, M, RT, RL>
[src]
into: &Table,
cols: Vec<SharedField>
) -> InsertQuery<T, V, M, RT, RL>
pub fn get_into(&self) -> &SharedTable
[src]
pub fn get_cols(&self) -> &Option<Vec<SharedField>>
[src]
pub fn get_values(&self) -> &Insert<T, V, M>
[src]
pub fn get_returning(&self) -> &Option<Select>
[src]
pub fn push(&mut self, value: V)
[src]
pub fn push_untyped(&mut self, values: &[&Expression<RawExpression>])
[src]
pub fn from_select(
&self,
select: SelectQuery<T, LimitMany, M>
) -> InsertQuery<T, V, M, RT, RL>
[src]
&self,
select: SelectQuery<T, LimitMany, M>
) -> InsertQuery<T, V, M, RT, RL>
impl<T: Clone, V: Clone, M: Clone, RT, RL> InsertQuery<T, V, M, RT, RL>
[src]
pub fn returning_1<T1: Clone>(
self,
field: &Expression<T1>
) -> InsertQuery<T, V, M, T1, LimitMany>
[src]
self,
field: &Expression<T1>
) -> InsertQuery<T, V, M, T1, LimitMany>
pub fn returning_2<T1: Clone, T2: Clone>(
self,
field1: &Expression<T1>,
field2: &Expression<T2>
) -> InsertQuery<T, V, M, (T1, T2), LimitMany>
[src]
self,
field1: &Expression<T1>,
field2: &Expression<T2>
) -> InsertQuery<T, V, M, (T1, T2), LimitMany>
pub fn returning(
self,
fields: &[&UntypedExpression]
) -> InsertQuery<T, V, M, (), LimitMany>
[src]
self,
fields: &[&UntypedExpression]
) -> InsertQuery<T, V, M, (), LimitMany>
pub fn returning_all(self) -> InsertQuery<T, V, M, (), LimitMany>
[src]
pub fn no_returning(self) -> InsertQuery<T, V, M, (), NoResult>
[src]
Trait Implementations
impl<T: Clone, V: Clone, M: Clone, RT: Clone, RL: Clone> Clone for InsertQuery<T, V, M, RT, RL>
[src]
fn clone(&self) -> InsertQuery<T, V, M, RT, RL>
[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, V: Debug, M: Debug, RT: Debug, RL: Debug> Debug for InsertQuery<T, V, M, RT, RL>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more