Skip to main content

SelectExt

Trait SelectExt 

Source
pub trait SelectExt {
    // Provided method
    fn exists<C>(self, db: &C) -> Result<bool, DbErr>
       where C: ConnectionTrait,
             Self: Sized { ... }
}
Expand description

Helper trait for selectors with convenient methods

Provided Methods§

Source

fn exists<C>(self, db: &C) -> Result<bool, DbErr>
where C: ConnectionTrait, Self: Sized,

Check if any records exist

Implementors§

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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