Trait diesel_async::methods::ExecuteDsl
source · pub trait ExecuteDsl<Conn, DB = <Conn as AsyncConnection>::Backend>where
Conn: AsyncConnection<Backend = DB>,
DB: Backend,{
// Required method
fn execute<'conn, 'query>(
query: Self,
conn: &'conn mut Conn
) -> Conn::ExecuteFuture<'conn, 'query>
where Self: 'query;
}
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§
sourcefn execute<'conn, 'query>(
query: Self,
conn: &'conn mut Conn
) -> Conn::ExecuteFuture<'conn, 'query>where
Self: 'query,
fn execute<'conn, 'query>( query: Self, conn: &'conn mut Conn ) -> Conn::ExecuteFuture<'conn, 'query>where Self: 'query,
Execute this command