pub struct TemporaryRuntimeNamespace<P>{ /* private fields */ }Expand description
Temporary runtime namespace wrapper.
Implementations§
Source§impl<P> TemporaryRuntimeNamespace<P>
impl<P> TemporaryRuntimeNamespace<P>
pub fn new(id: RuntimeNamespaceId, context: Arc<RuntimeContext<P>>) -> Self
pub fn replace_context(&self, context: Arc<RuntimeContext<P>>)
pub fn clear_tables<I>(&self, canonical_names: I)where
I: IntoIterator<Item = String>,
pub fn context(&self) -> Arc<RuntimeContext<P>>
Trait Implementations§
Source§impl<P> Clone for TemporaryRuntimeNamespace<P>
impl<P> Clone for TemporaryRuntimeNamespace<P>
Source§fn clone(&self) -> TemporaryRuntimeNamespace<P>
fn clone(&self) -> TemporaryRuntimeNamespace<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> RuntimeStorageNamespace for TemporaryRuntimeNamespace<P>
impl<P> RuntimeStorageNamespace for TemporaryRuntimeNamespace<P>
type Pager = P
Source§fn namespace_id(&self) -> &RuntimeNamespaceId
fn namespace_id(&self) -> &RuntimeNamespaceId
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, plan: DropTablePlan) -> Result<()>
fn drop_table(&self, plan: DropTablePlan) -> Result<()>
Drop a table from this namespace by forwarding the planned request.
Source§fn rename_table(&self, plan: RenameTablePlan) -> Result<()>
fn rename_table(&self, plan: RenameTablePlan) -> Result<()>
Rename a table within this namespace.
Source§fn alter_table(
&self,
plan: AlterTablePlan,
) -> Result<RuntimeStatementResult<Self::Pager>>
fn alter_table( &self, plan: AlterTablePlan, ) -> Result<RuntimeStatementResult<Self::Pager>>
Alter a table within 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 within this namespace.
Source§fn drop_index(
&self,
plan: DropIndexPlan,
) -> Result<Option<SingleColumnIndexDescriptor>>
fn drop_index( &self, plan: DropIndexPlan, ) -> Result<Option<SingleColumnIndexDescriptor>>
Drop an index from this namespace by forwarding the request.
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 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 override this method.
Auto Trait Implementations§
impl<P> Freeze for TemporaryRuntimeNamespace<P>
impl<P> RefUnwindSafe for TemporaryRuntimeNamespace<P>
impl<P> Send for TemporaryRuntimeNamespace<P>
impl<P> Sync for TemporaryRuntimeNamespace<P>
impl<P> Unpin for TemporaryRuntimeNamespace<P>
impl<P> UnwindSafe for TemporaryRuntimeNamespace<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