diesel::query_dsl::methods

Trait ExecuteDsl

source
pub trait ExecuteDsl<Conn: Connection<Backend = DB>, DB: Backend = <Conn as Connection>::Backend>: Sized {
    // Required method
    fn execute(query: Self, conn: &mut Conn) -> QueryResult<usize>;
}
Expand description

The execute method

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

Required Methods§

source

fn execute(query: Self, conn: &mut Conn) -> QueryResult<usize>

Execute this command

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Conn, DB, T> ExecuteDsl<Conn, DB> for T
where Conn: Connection<Backend = DB>, DB: Backend, T: QueryFragment<DB> + QueryId,