pub struct Plan { /* private fields */ }Implementations§
Source§impl Plan
impl Plan
Sourcepub fn new(plans: Vec<SubscriptionPlan>, hash: QueryHash, text: String) -> Self
pub fn new(plans: Vec<SubscriptionPlan>, hash: QueryHash, text: String) -> Self
Create a new subscription plan to be cached
Sourcepub fn subscribed_table_id(&self) -> TableId
pub fn subscribed_table_id(&self) -> TableId
A subscription query return rows from a single table. This method returns the id of that table.
Sourcepub fn subscribed_table_name(&self) -> &str
pub fn subscribed_table_name(&self) -> &str
A subscription query return rows from a single table. This method returns the name of that table.
Sourcepub fn index_ids(&self) -> impl Iterator<Item = (TableId, IndexId)>
pub fn index_ids(&self) -> impl Iterator<Item = (TableId, IndexId)>
Returns the index ids from which this subscription reads
Sourcepub fn table_ids(&self) -> impl Iterator<Item = TableId> + '_
pub fn table_ids(&self) -> impl Iterator<Item = TableId> + '_
Returns the table ids from which this subscription reads
Sourcepub fn plans_fragments(&self) -> impl Iterator<Item = &SubscriptionPlan> + '_
pub fn plans_fragments(&self) -> impl Iterator<Item = &SubscriptionPlan> + '_
Returns the plan fragments that comprise this subscription. Will only return one element unless there is a table with multiple RLS rules.
Sourcepub fn join_edges(
&self,
) -> impl Iterator<Item = (JoinEdge, AlgebraicValue)> + '_
pub fn join_edges( &self, ) -> impl Iterator<Item = (JoinEdge, AlgebraicValue)> + '_
Returns the join edges for this plan, if any.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnwindSafe for Plan
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> 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