pub struct WorkTable {
batches: Mutex<Option<ReservedBatches>>,
}Expand description
The name is from PostgreSQL’s terminology. See https://wiki.postgresql.org/wiki/CTEReadme#How_Recursion_Works This table serves as a mirror or buffer between each iteration of a recursive query.
Fields§
§batches: Mutex<Option<ReservedBatches>>Implementations§
Source§impl WorkTable
impl WorkTable
Sourcefn take(&self) -> Result<ReservedBatches>
fn take(&self) -> Result<ReservedBatches>
Take the previously written batches from the work table.
This will be called by the WorkTableExec when it is executed.
Sourcepub(crate) fn update(&self, batches: ReservedBatches)
pub(crate) fn update(&self, batches: ReservedBatches)
Update the results of a recursive query iteration to the work table.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for WorkTable
impl RefUnwindSafe for WorkTable
impl Send for WorkTable
impl Sync for WorkTable
impl Unpin for WorkTable
impl UnwindSafe for WorkTable
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more