Trait diesel::query_dsl::methods::ExecuteDsl [−][src]
pub trait ExecuteDsl<Conn: Connection<Backend = DB>, DB: Backend = <Conn as Connection>::Backend>: Sized { fn execute(query: Self, conn: &Conn) -> QueryResult<usize>; }
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
fn execute(query: Self, conn: &Conn) -> QueryResult<usize>
Execute this command
Implementors
impl<'a, T, U, Op> ExecuteDsl<SqliteConnection> for InsertStatement<T, &'a [U], Op> where
&'a U: Insertable<T>,
InsertStatement<T, <&'a U as Insertable<T>>::Values, Op>: QueryFragment<Sqlite>,
T: Copy,
Op: Copy,impl<'a, T, U, Op> ExecuteDsl<SqliteConnection> for InsertStatement<T, BatchInsert<'a, U, T>, Op> where
InsertStatement<T, &'a [U], Op>: ExecuteDsl<SqliteConnection>,impl<T, U, Op> ExecuteDsl<SqliteConnection> for InsertStatement<T, OwnedBatchInsert<ValuesClause<U, T>>, Op> where
InsertStatement<T, ValuesClause<U, T>, Op>: QueryFragment<Sqlite>,
T: Copy,
Op: Copy,impl<Conn, DB, T> ExecuteDsl<Conn, DB> for T where
Conn: Connection<Backend = DB>,
DB: Backend,
T: QueryFragment<DB> + QueryId,