pub struct TemporaryNamespace<P>{ /* private fields */ }Implementations§
Source§impl<P> TemporaryNamespace<P>
impl<P> TemporaryNamespace<P>
pub fn new(id: NamespaceId, context: Arc<RuntimeContext<P>>) -> Self
pub fn replace_context(&self, context: Arc<RuntimeContext<P>>)
pub fn register_table(&self, canonical: String)
pub fn unregister_table(&self, canonical: &str)
pub fn clear_tables(&self)
pub fn has_table(&self, canonical: &str) -> bool
pub fn context(&self) -> Arc<RuntimeContext<P>>
Trait Implementations§
Source§impl<P> Clone for TemporaryNamespace<P>
impl<P> Clone for TemporaryNamespace<P>
Source§fn clone(&self) -> TemporaryNamespace<P>
fn clone(&self) -> TemporaryNamespace<P>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<P> StorageNamespace for TemporaryNamespace<P>
impl<P> StorageNamespace for TemporaryNamespace<P>
type Pager = P
Source§fn namespace_id(&self) -> &NamespaceId
fn namespace_id(&self) -> &NamespaceId
Identifier used when resolving schemas (e.g. “main”, “temp”).
Source§fn context(&self) -> Arc<RuntimeContext<Self::Pager>>
fn context(&self) -> Arc<RuntimeContext<Self::Pager>>
Returns the runtime context bound to this namespace.
Source§fn create_table(
&self,
plan: CreateTablePlan,
) -> Result<RuntimeStatementResult<Self::Pager>>
fn create_table( &self, plan: CreateTablePlan, ) -> Result<RuntimeStatementResult<Self::Pager>>
Create a table inside this namespace.
Source§fn drop_table(&self, name: &str, if_exists: bool) -> Result<()>
fn drop_table(&self, name: &str, if_exists: bool) -> Result<()>
Drop a table from this namespace.
Source§fn create_index(
&self,
plan: CreateIndexPlan,
) -> Result<RuntimeStatementResult<Self::Pager>>
fn create_index( &self, plan: CreateIndexPlan, ) -> Result<RuntimeStatementResult<Self::Pager>>
Create an index inside this namespace.
Source§fn lookup_table(
&self,
canonical: &str,
) -> Result<Arc<ExecutorTable<Self::Pager>>>
fn lookup_table( &self, canonical: &str, ) -> Result<Arc<ExecutorTable<Self::Pager>>>
Lookup a table by canonical name.
Source§fn list_tables(&self) -> Vec<String>
fn list_tables(&self) -> Vec<String>
List tables visible to this namespace.
Source§fn owns_table(&self, canonical: &str) -> bool
fn owns_table(&self, canonical: &str) -> bool
Returns true if the namespace owns (and should answer for) the canonical table name.
Source§fn execute_operation(
&self,
operation: PlanOperation,
) -> Result<TransactionResult<Self::Pager>>
fn execute_operation( &self, operation: PlanOperation, ) -> Result<TransactionResult<Self::Pager>>
Execute a generic plan operation. Namespaces that do not yet support this entry point
should rely on the default error implementation.
Auto Trait Implementations§
impl<P> Freeze for TemporaryNamespace<P>
impl<P> RefUnwindSafe for TemporaryNamespace<P>
impl<P> Send for TemporaryNamespace<P>
impl<P> Sync for TemporaryNamespace<P>
impl<P> Unpin for TemporaryNamespace<P>
impl<P> UnwindSafe for TemporaryNamespace<P>
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,
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