[][src]Trait diesel::query_dsl::methods::LockingDsl

pub trait LockingDsl<Lock> {
    type Output;
    fn with_lock(self, lock: Lock) -> Self::Output;
}

Methods related to locking select statements

This trait should not be relied on directly by most apps. Its behavior is provided by QueryDsl. However, you may need a where clause on this trait to call for_update from generic code.

Associated Types

type Output

The type returned by set_lock. See dsl::ForUpdate and friends for convenient access to this type.

Loading content...

Required methods

fn with_lock(self, lock: Lock) -> Self::Output

See the trait level documentation

Loading content...

Implementors

impl<T, Lock> LockingDsl<Lock> for T where
    T: Table + AsQuery,
    T::Query: LockingDsl<Lock>, 
[src]

type Output = <T::Query as LockingDsl<Lock>>::Output

Loading content...