pub struct PrivilegeScope<'a, Queries = Vec<QueryPlan>> {
pub catalog: &'a dyn PrivilegeCatalog,
pub resolution: RelationNameResolution,
pub inherited: &'a dyn PrivilegeCteCatalog,
pub scalar_subqueries: Queries,
/* private fields */
}Fields§
§catalog: &'a dyn PrivilegeCatalog§resolution: RelationNameResolution§inherited: &'a dyn PrivilegeCteCatalog§scalar_subqueries: QueriesImplementations§
Source§impl<'a> PrivilegeScope<'a>
impl<'a> PrivilegeScope<'a>
pub fn new( catalog: &'a dyn PrivilegeCatalog, resolution: RelationNameResolution, inherited: &'a dyn PrivilegeCteCatalog, scalar_subqueries: Vec<QueryPlan>, ) -> Self
Source§impl<'a> PrivilegeScope<'a, &'a [QueryPlan]>
impl<'a> PrivilegeScope<'a, &'a [QueryPlan]>
Sourcepub fn borrowed(
catalog: &'a dyn PrivilegeCatalog,
resolution: RelationNameResolution,
inherited: &'a dyn PrivilegeCteCatalog,
scalar_subqueries: &'a [QueryPlan],
) -> Self
pub fn borrowed( catalog: &'a dyn PrivilegeCatalog, resolution: RelationNameResolution, inherited: &'a dyn PrivilegeCteCatalog, scalar_subqueries: &'a [QueryPlan], ) -> Self
Borrow the executing statement’s immutable query arena without copying its plans. The owned constructor and its public vector remain available for callers that retain a scope.
Source§impl<'a, Queries: AsRef<[QueryPlan]>> PrivilegeScope<'a, Queries>
impl<'a, Queries: AsRef<[QueryPlan]>> PrivilegeScope<'a, Queries>
pub fn insert_deferred(&mut self, plan: CtePlan)
pub fn is_visible_cte(&self, name: &str) -> bool
pub fn materialized_for_scan(&self, name: &str) -> Option<Vec<String>>
pub fn deferred_reference(&self, name: &str) -> Option<&CtePlan>
pub fn privilege_subject(&self) -> Result<&RoleReference, SQLError>
Trait Implementations§
Auto Trait Implementations§
impl<'a, Queries = Vec<QueryPlan>> !RefUnwindSafe for PrivilegeScope<'a, Queries>
impl<'a, Queries = Vec<QueryPlan>> !Send for PrivilegeScope<'a, Queries>
impl<'a, Queries = Vec<QueryPlan>> !Sync for PrivilegeScope<'a, Queries>
impl<'a, Queries = Vec<QueryPlan>> !UnwindSafe for PrivilegeScope<'a, Queries>
impl<'a, Queries> Freeze for PrivilegeScope<'a, Queries>where
Queries: Freeze,
impl<'a, Queries> Unpin for PrivilegeScope<'a, Queries>where
Queries: Unpin,
impl<'a, Queries> UnsafeUnpin for PrivilegeScope<'a, Queries>where
Queries: UnsafeUnpin,
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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