pub struct RelationNameResolution {
pub search_path: Vec<String>,
pub temporary_schema: String,
pub temporary_namespace_allocated: bool,
pub current_user: String,
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: String§lookup_mode: RelationLookupModeImplementations§
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) -> &str
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§fn clone(&self) -> RelationNameResolution
fn clone(&self) -> RelationNameResolution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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