[][src]Trait diesel_helper::DbRunQuery

pub trait DbRunQuery: Sized {
    fn db_load<U>(self) -> QueryResult<Vec<U>>
    where
        Self: LoadQuery<Connection, U>
;
fn db_get_result<U>(self) -> QueryResult<U>
    where
        Self: LoadQuery<Connection, U>
;
fn db_get_results<U>(self) -> QueryResult<Vec<U>>
    where
        Self: LoadQuery<Connection, U>
;
fn db_execute(self) -> QueryResult<usize>
    where
        Self: ExecuteDsl<Connection>
;
fn db_first<U>(self) -> QueryResult<U>
    where
        Self: LimitDsl,
        Limit<Self>: LoadQuery<Connection, U>
;
fn db_first_opt<U>(self) -> QueryResult<Option<U>>
    where
        Self: LimitDsl,
        Limit<Self>: LoadQuery<Connection, U>
; }

Methods used to execute queries.

Required methods

fn db_load<U>(self) -> QueryResult<Vec<U>> where
    Self: LoadQuery<Connection, U>, 

fn db_get_result<U>(self) -> QueryResult<U> where
    Self: LoadQuery<Connection, U>, 

fn db_get_results<U>(self) -> QueryResult<Vec<U>> where
    Self: LoadQuery<Connection, U>, 

fn db_execute(self) -> QueryResult<usize> where
    Self: ExecuteDsl<Connection>, 

fn db_first<U>(self) -> QueryResult<U> where
    Self: LimitDsl,
    Limit<Self>: LoadQuery<Connection, U>, 

fn db_first_opt<U>(self) -> QueryResult<Option<U>> where
    Self: LimitDsl,
    Limit<Self>: LoadQuery<Connection, U>, 

Loading content...

Implementors

impl<T: RunQueryDsl<Connection> + QueryFragment<Backend>> DbRunQuery for T[src]

Loading content...