Struct diesel::query_builder::BoxedSqlQuery
source · [−]pub struct BoxedSqlQuery<'f, DB: Backend, Query> { /* private fields */ }
Expand description
See SqlQuery::into_boxed
.
Implementations
sourceimpl<'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) -> Selfwhere
DB: HasSqlType<BindSt>,
Value: ToSql<BindSt, DB> + Send + 'f,
BindSt: Send + 'f,
pub fn bind<BindSt, Value>(self, b: Value) -> Selfwhere
DB: HasSqlType<BindSt>,
Value: ToSql<BindSt, DB> + Send + 'f,
BindSt: Send + 'f,
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
sourceimpl<DB, Q> Query for BoxedSqlQuery<'_, DB, Q>where
DB: Backend,
impl<DB, Q> Query for BoxedSqlQuery<'_, DB, Q>where
DB: Backend,
sourceimpl<DB: Backend, Query> QueryId for BoxedSqlQuery<'_, DB, Query>
impl<DB: Backend, Query> QueryId for BoxedSqlQuery<'_, DB, Query>
sourceconst 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 moresourceimpl<Conn: Connection, Query> RunQueryDsl<Conn> for BoxedSqlQuery<'_, Conn::Backend, Query>
impl<Conn: Connection, Query> RunQueryDsl<Conn> for BoxedSqlQuery<'_, Conn::Backend, Query>
sourcefn 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>,
sourcefn load_iter<'conn, 'query: 'conn, U, B>(
self,
conn: &'conn mut Conn
) -> QueryResult<LoadIter<'conn, 'query, Self, Conn, U, B>>where
U: 'conn,
Self: LoadQuery<'query, Conn, U, B> + 'conn,
fn load_iter<'conn, 'query: 'conn, U, B>(
self,
conn: &'conn mut Conn
) -> QueryResult<LoadIter<'conn, 'query, Self, Conn, U, B>>where
U: 'conn,
Self: LoadQuery<'query, Conn, U, B> + 'conn,
sourcefn 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
sourcefn 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> !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
sourceimpl<T> AsQuery for Twhere
T: Query,
impl<T> AsQuery for Twhere
T: Query,
type Query = T
type Query = T
What kind of query does this type represent?
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Conn, DB, T> ExecuteDsl<Conn, DB> for Twhere
Conn: Connection<Backend = DB>,
DB: Backend,
T: QueryFragment<DB, NotSpecialized> + QueryId,
impl<Conn, DB, T> ExecuteDsl<Conn, DB> for Twhere
Conn: Connection<Backend = DB>,
DB: Backend,
T: QueryFragment<DB, NotSpecialized> + QueryId,
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourcefn into_sql<T>(self) -> AsExprOf<Self, T>where
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> AsExprOf<Self, T>where
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
Convert
self
to an expression for Diesel’s query builder. Read moresourcefn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T>where
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T>where
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read more