pub struct BoxedLimitOffsetClause<'a, DB> {
pub limit: Option<Box<dyn QueryFragment<DB> + Send + 'a>>,
pub offset: Option<Box<dyn QueryFragment<DB> + Send + 'a>>,
}
Expand description
A boxed variant of LimitOffsetClause
This type is only relevant for implementing custom backends
Fields§
§limit: Option<Box<dyn QueryFragment<DB> + Send + 'a>>
The limit clause
offset: Option<Box<dyn QueryFragment<DB> + Send + 'a>>
The offset clause
Trait Implementations§
source§impl<'a> QueryFragment<Pg> for BoxedLimitOffsetClause<'a, Pg>
impl<'a> QueryFragment<Pg> for BoxedLimitOffsetClause<'a, Pg>
source§fn walk_ast<'b>(&'b self, out: AstPass<'_, 'b, Pg>) -> QueryResult<()>
fn walk_ast<'b>(&'b self, out: AstPass<'_, 'b, Pg>) -> 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<()>
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<()>
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>
Is this query safe to store in the prepared statement cache? Read more
Auto Trait Implementations§
impl<'a, DB> Freeze for BoxedLimitOffsetClause<'a, DB>
impl<'a, DB> !RefUnwindSafe for BoxedLimitOffsetClause<'a, DB>
impl<'a, DB> Send for BoxedLimitOffsetClause<'a, DB>
impl<'a, DB> !Sync for BoxedLimitOffsetClause<'a, DB>
impl<'a, DB> Unpin for BoxedLimitOffsetClause<'a, DB>
impl<'a, DB> !UnwindSafe for BoxedLimitOffsetClause<'a, DB>
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