pub struct StorageNamespaceRegistry { /* private fields */ }Implementations§
Source§impl StorageNamespaceRegistry
impl StorageNamespaceRegistry
pub fn new(persistent_id: NamespaceId) -> Self
pub fn persistent_id(&self) -> &str
pub fn register_namespace<N, I>( &mut self, namespace: Arc<N>, schemas: I, prefer_unqualified: bool, )
pub fn register_schema( &mut self, schema: impl Into<String>, namespace: NamespaceId, )
pub fn set_unqualified_priority(&mut self, order: Vec<NamespaceId>)
pub fn namespace_for_schema(&self, schema: &str) -> Option<&NamespaceId>
pub fn namespace_ops(&self, id: &str) -> Option<Arc<dyn StorageNamespaceOps>>
pub fn namespace<N>(&self, id: &str) -> Option<Arc<N>>where
N: StorageNamespace + 'static,
pub fn unqualified_order(&self) -> Box<dyn Iterator<Item = &NamespaceId> + '_>
pub fn is_temporary_table(&self, canonical: &str) -> bool
pub fn namespace_for_table(&self, canonical: &str) -> NamespaceId
Auto Trait Implementations§
impl Freeze for StorageNamespaceRegistry
impl !RefUnwindSafe for StorageNamespaceRegistry
impl Send for StorageNamespaceRegistry
impl Sync for StorageNamespaceRegistry
impl Unpin for StorageNamespaceRegistry
impl !UnwindSafe for StorageNamespaceRegistry
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