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 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