pub enum StreamShape {
ReadOnly,
Mutating,
}Expand description
Classification of a compiled query, used by the database layer to
decide whether db.stream needs a hidden staged transaction.
Variants§
ReadOnly
No mutating operator anywhere in the plan or any of its UNION branches. Safe to stream against the live store.
Mutating
Has at least one mutating operator (Create / Merge / Delete / Set / Remove). The host should run this against a staged graph and only publish on cursor exhaustion.
Implementations§
Source§impl StreamShape
impl StreamShape
pub fn is_mutating(self) -> bool
Trait Implementations§
Source§impl Clone for StreamShape
impl Clone for StreamShape
impl Copy for StreamShape
Source§impl Debug for StreamShape
impl Debug for StreamShape
impl Eq for StreamShape
Source§impl PartialEq for StreamShape
impl PartialEq for StreamShape
impl StructuralPartialEq for StreamShape
Auto Trait Implementations§
impl Freeze for StreamShape
impl RefUnwindSafe for StreamShape
impl Send for StreamShape
impl Sync for StreamShape
impl Unpin for StreamShape
impl UnsafeUnpin for StreamShape
impl UnwindSafe for StreamShape
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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