pub struct PagedLoadQuery<'a, E>where
E: EntityKind,{ /* private fields */ }Expand description
PagedLoadQuery
Session-bound cursor pagination wrapper. This wrapper only exposes cursor continuation and paged execution.
Implementations§
Source§impl<E> PagedLoadQuery<'_, E>where
E: EntityKind,
impl<E> PagedLoadQuery<'_, E>where
E: EntityKind,
pub const fn query(&self) -> &Query<E>
Sourcepub fn cursor(self, token: impl Into<String>) -> Self
pub fn cursor(self, token: impl Into<String>) -> Self
Attach an opaque continuation token for the next page.
Sourcepub fn execute(self) -> Result<PagedLoadExecution<E>, QueryError>where
E: EntityValue,
pub fn execute(self) -> Result<PagedLoadExecution<E>, QueryError>where
E: EntityValue,
Execute in cursor-pagination mode and return items + next cursor.
Continuation is best-effort and forward-only over live state: deterministic per request under canonical ordering, with no snapshot/version pinned across requests.
Sourcepub fn execute_with_trace(
self,
) -> Result<PagedLoadExecutionWithTrace<E>, QueryError>where
E: EntityValue,
pub fn execute_with_trace(
self,
) -> Result<PagedLoadExecutionWithTrace<E>, QueryError>where
E: EntityValue,
Execute in cursor-pagination mode and return items, next cursor, and optional execution trace details when session debug mode is enabled.
Trace collection is opt-in via DbSession::debug() and does not
change query planning or result semantics.
Auto Trait Implementations§
impl<'a, E> Freeze for PagedLoadQuery<'a, E>
impl<'a, E> !RefUnwindSafe for PagedLoadQuery<'a, E>
impl<'a, E> !Send for PagedLoadQuery<'a, E>
impl<'a, E> !Sync for PagedLoadQuery<'a, E>
impl<'a, E> Unpin for PagedLoadQuery<'a, E>
impl<'a, E> UnsafeUnpin for PagedLoadQuery<'a, E>
impl<'a, E> !UnwindSafe for PagedLoadQuery<'a, E>
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