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>
impl<DB, Query> QueryFragment<DB> for BoxedSqlQuery<'_, DB, Query>
source§fn walk_ast<'b>(&'b self, out: AstPass<'_, 'b, DB>) -> QueryResult<()>
fn walk_ast<'b>(&'b self, out: AstPass<'_, 'b, DB>) -> QueryResult<()>
Walk over this
QueryFragment
for all passes. Read moresource§fn to_sql(&self, out: &mut DB::QueryBuilder, backend: &DB) -> QueryResult<()>
fn to_sql(&self, out: &mut DB::QueryBuilder, backend: &DB) -> QueryResult<()>
Available on crate feature
i-implement-a-third-party-backend-and-opt-into-breaking-changes
only.Converts this
QueryFragment
to its SQL representation. Read moresource§fn collect_binds<'b>(
&'b self,
out: &mut DB::BindCollector<'b>,
metadata_lookup: &mut DB::MetadataLookup,
backend: &'b DB
) -> QueryResult<()>
fn collect_binds<'b>( &'b self, out: &mut DB::BindCollector<'b>, metadata_lookup: &mut DB::MetadataLookup, backend: &'b DB ) -> QueryResult<()>
Available on crate feature
i-implement-a-third-party-backend-and-opt-into-breaking-changes
only.Serializes all bind parameters in this query. Read more
source§fn is_safe_to_cache_prepared(&self, backend: &DB) -> QueryResult<bool>
fn is_safe_to_cache_prepared(&self, backend: &DB) -> QueryResult<bool>
Available on crate feature
i-implement-a-third-party-backend-and-opt-into-breaking-changes
only.Is this query safe to store in the prepared statement cache? Read more
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