Skip to main content

UpdateSeed

Struct UpdateSeed 

Source
pub struct UpdateSeed<D, T> { /* private fields */ }

Implementations§

Source§

impl<D, T: Table> UpdateSeed<D, T>

Source

pub fn correlated<S, InnerSel>( &self, source: S, selection: InnerSel, ) -> Select<D, Cons<TableSlot<S::Table, NotNull>, WrittenTable<T>>, InnerSel, WrittenTable<T>>
where S: JoinSource<D>,

A correlated subquery over the table this statement will write — available before the SET list, since the scope it correlates against is the table, not the assignments.

Source

pub fn set_to<C, V, Idxs>(self, column: Column<C>, value: V) -> Update<D, T>
where C: ColumnKey<Table = T> + Writable, V: IntoExpr, V::Sql: AssignsTo<C::Sql>, WrittenTable<T>: Superset<V::Req, Idxs>,

SET column = <expression> as the statement’s first assignment — infallible, since one assignment is one assignment. .set_to(..) again for more.

Source

pub fn set(self, sets: Assignments<T>) -> Update<D, T>

The statement’s SET list. Infallible: an Assignments holds at least one assignment by construction, and the empty case an *Update can be lives in Assignments::from_row, which is where the ? goes.

Auto Trait Implementations§

§

impl<D, T> Freeze for UpdateSeed<D, T>
where PhantomData<fn() -> (D, T)>: Freeze,

§

impl<D, T> RefUnwindSafe for UpdateSeed<D, T>

§

impl<D, T> Send for UpdateSeed<D, T>
where PhantomData<fn() -> (D, T)>: Send,

§

impl<D, T> Sync for UpdateSeed<D, T>
where PhantomData<fn() -> (D, T)>: Sync,

§

impl<D, T> Unpin for UpdateSeed<D, T>
where PhantomData<fn() -> (D, T)>: Unpin,

§

impl<D, T> UnsafeUnpin for UpdateSeed<D, T>

§

impl<D, T> UnwindSafe for UpdateSeed<D, T>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<S> Superset<Nil, Nil> for S

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WrapNullable<NotNull> for T