Struct diesel::query_builder::BoxedSqlQuery
source · 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 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