pub struct RelationNameResolution {
pub search_path: Vec<String>,
pub temporary_schema: String,
pub temporary_namespace_allocated: bool,
pub current_user: RoleReference,
pub lookup_mode: RelationLookupMode,
}Expand description
Immutable session inputs used to resolve unqualified relation names during one statement.
Fields§
§search_path: Vec<String>§temporary_schema: String§temporary_namespace_allocated: bool§current_user: RoleReference§lookup_mode: RelationLookupModeImplementations§
Source§impl RelationNameResolution
impl RelationNameResolution
Sourcepub fn from_inputs_with_control<'a>(
search_path: impl IntoIterator<Item = &'a str>,
temporary_schema: Produced<String>,
temporary_namespace_allocated: bool,
current_user: &RoleReference,
lookup_mode: RelationLookupMode,
control: &ProductionControl<'_>,
) -> Result<Produced<Self>, SQLError>
pub fn from_inputs_with_control<'a>( search_path: impl IntoIterator<Item = &'a str>, temporary_schema: Produced<String>, temporary_namespace_allocated: bool, current_user: &RoleReference, lookup_mode: RelationLookupMode, control: &ProductionControl<'_>, ) -> Result<Produced<Self>, SQLError>
Capture already expanded search-path names and a separately admitted temporary name. Bound roles retain their immutable incarnation without copying its name.
pub fn copy_with_control( &self, control: &ProductionControl<'_>, ) -> Result<Produced<Self>, SQLError>
Source§impl RelationNameResolution
impl RelationNameResolution
pub fn search_path(&self) -> &[String]
pub fn search_path_contains(&self, schema: &str) -> bool
pub fn current_user(&self) -> &RoleReference
pub fn lookup_mode(&self) -> RelationLookupMode
pub fn qualified_schema( &self, name: &str, ) -> Result<Option<(String, String)>, SQLError>
pub fn set_lookup_mode( &mut self, lookup_mode: RelationLookupMode, ) -> RelationLookupMode
pub fn raw_relation_lookup_candidates( &self, name: &str, ) -> Result<Vec<RelationIdentity>, SQLError>
Trait Implementations§
Source§impl Clone for RelationNameResolution
impl Clone for RelationNameResolution
Source§impl From<RelationNameResolution> for BindingResolution
impl From<RelationNameResolution> for BindingResolution
Source§fn from(value: RelationNameResolution) -> Self
fn from(value: RelationNameResolution) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RelationNameResolution
impl RefUnwindSafe for RelationNameResolution
impl Send for RelationNameResolution
impl Sync for RelationNameResolution
impl Unpin for RelationNameResolution
impl UnsafeUnpin for RelationNameResolution
impl UnwindSafe for RelationNameResolution
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