SelectExt

Trait SelectExt 

pub trait SelectExt {
    // Provided method
    fn exists<'life0, 'async_trait, C>(
        self,
        db: &'life0 C,
    ) -> Pin<Box<dyn Future<Output = Result<bool, DbErr>> + Send + 'async_trait>>
       where C: ConnectionTrait + 'async_trait,
             Self: Send + Sized + Send + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Helper trait for selectors with convenient methods

Provided Methods§

fn exists<'life0, 'async_trait, C>( self, db: &'life0 C, ) -> Pin<Box<dyn Future<Output = Result<bool, DbErr>> + Send + 'async_trait>>
where C: ConnectionTrait + 'async_trait, Self: Send + Sized + Send + 'async_trait, 'life0: 'async_trait,

Check if any records exist

Implementors§

§

impl<E> SelectExt for Select<E>
where E: EntityTrait,

§

impl<E, F> SelectExt for SelectTwo<E, F>
where E: EntityTrait, F: EntityTrait,

§

impl<E, F, G, H, I, J, TOP> SelectExt for SelectSix<E, F, G, H, I, J, TOP>

§

impl<E, F, G, H, I, TOP> SelectExt for SelectFive<E, F, G, H, I, TOP>

§

impl<E, F, G, H, TOP> SelectExt for SelectFour<E, F, G, H, TOP>

§

impl<E, F, G, TOP> SelectExt for SelectThree<E, F, G, TOP>

§

impl<S> SelectExt for Selector<S>
where S: SelectorTrait,

§

impl<S> SelectExt for SelectorRaw<S>
where S: SelectorTrait,