pub struct BoxedSqlQuery<'f, DB: Backend, Query> { /* private fields */ }
Expand description
See SqlQuery::into_boxed
.
Implementations§
Source§impl<'f, DB: Backend, Query> BoxedSqlQuery<'f, DB, Query>
impl<'f, DB: Backend, Query> BoxedSqlQuery<'f, DB, Query>
Sourcepub fn bind<BindSt, Value>(self, b: Value) -> Self
pub fn bind<BindSt, Value>(self, b: Value) -> Self
See SqlQuery::bind
.
Sourcepub fn sql<T: AsRef<str>>(self, sql: T) -> Self
pub fn sql<T: AsRef<str>>(self, sql: T) -> Self
See SqlQuery::sql
.
Trait Implementations§
Source§impl<DB, Q> Query for BoxedSqlQuery<'_, DB, Q>where
DB: Backend,
impl<DB, Q> Query for BoxedSqlQuery<'_, DB, Q>where
DB: Backend,
Source§impl<DB, Query> QueryFragment<DB> for BoxedSqlQuery<'_, DB, Query>where
DB: Backend + DieselReserveSpecialization,
Query: QueryFragment<DB>,
impl<DB, Query> QueryFragment<DB> for BoxedSqlQuery<'_, DB, Query>where
DB: Backend + DieselReserveSpecialization,
Query: QueryFragment<DB>,
Source§impl<DB: Backend, Query> QueryId for BoxedSqlQuery<'_, DB, Query>
impl<DB: Backend, Query> QueryId for BoxedSqlQuery<'_, DB, Query>
Source§const HAS_STATIC_QUERY_ID: bool = false
const HAS_STATIC_QUERY_ID: bool = false
Can the SQL generated by
Self
be uniquely identified by its type? Read moreSource§impl<Conn: Connection, Query> RunQueryDsl<Conn> for BoxedSqlQuery<'_, Conn::Backend, Query>
impl<Conn: Connection, Query> RunQueryDsl<Conn> for BoxedSqlQuery<'_, Conn::Backend, Query>
Source§fn execute(self, conn: &mut Conn) -> QueryResult<usize>where
Conn: Connection,
Self: ExecuteDsl<Conn>,
fn execute(self, conn: &mut Conn) -> QueryResult<usize>where
Conn: Connection,
Self: ExecuteDsl<Conn>,
Executes the given command, returning the number of rows affected. Read more
Source§fn load<'query, U>(self, conn: &mut Conn) -> QueryResult<Vec<U>>where
Self: LoadQuery<'query, Conn, U>,
fn load<'query, U>(self, conn: &mut Conn) -> QueryResult<Vec<U>>where
Self: LoadQuery<'query, Conn, U>,
Source§fn load_iter<'conn, 'query: 'conn, U, B>(
self,
conn: &'conn mut Conn,
) -> QueryResult<Self::RowIter<'conn>>where
U: 'conn,
Self: LoadQuery<'query, Conn, U, B> + 'conn,
fn load_iter<'conn, 'query: 'conn, U, B>(
self,
conn: &'conn mut Conn,
) -> QueryResult<Self::RowIter<'conn>>where
U: 'conn,
Self: LoadQuery<'query, Conn, U, B> + 'conn,
Source§fn get_result<'query, U>(self, conn: &mut Conn) -> QueryResult<U>where
Self: LoadQuery<'query, Conn, U>,
fn get_result<'query, U>(self, conn: &mut Conn) -> QueryResult<U>where
Self: LoadQuery<'query, Conn, U>,
Runs the command, and returns the affected row. Read more
Source§fn get_results<'query, U>(self, conn: &mut Conn) -> QueryResult<Vec<U>>where
Self: LoadQuery<'query, Conn, U>,
fn get_results<'query, U>(self, conn: &mut Conn) -> QueryResult<Vec<U>>where
Self: LoadQuery<'query, Conn, U>,
Runs the command, returning an
Vec
with the affected rows. Read moreAuto Trait Implementations§
impl<'f, DB, Query> Freeze for BoxedSqlQuery<'f, DB, Query>where
Query: Freeze,
impl<'f, DB, Query> !RefUnwindSafe for BoxedSqlQuery<'f, DB, Query>
impl<'f, DB, Query> Send for BoxedSqlQuery<'f, DB, Query>where
Query: Send,
impl<'f, DB, Query> !Sync for BoxedSqlQuery<'f, DB, Query>
impl<'f, DB, Query> Unpin for BoxedSqlQuery<'f, DB, Query>where
Query: Unpin,
impl<'f, DB, Query> !UnwindSafe for BoxedSqlQuery<'f, DB, Query>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more