pub struct PersistentRuntimeNamespace { /* private fields */ }Expand description
Persistent runtime namespace wrapper.
Implementations§
Source§impl PersistentRuntimeNamespace
impl PersistentRuntimeNamespace
pub fn new( id: RuntimeNamespaceId, context: Arc<RuntimeContext<BoxedPager>>, ) -> Self
Trait Implementations§
Source§impl Clone for PersistentRuntimeNamespace
impl Clone for PersistentRuntimeNamespace
Source§fn clone(&self) -> PersistentRuntimeNamespace
fn clone(&self) -> PersistentRuntimeNamespace
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 RuntimeStorageNamespace for PersistentRuntimeNamespace
impl RuntimeStorageNamespace for PersistentRuntimeNamespace
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<BoxedPager>>
fn context(&self) -> Arc<RuntimeContext<BoxedPager>>
Returns the runtime context bound to this namespace.
Source§fn create_table(
&self,
plan: CreateTablePlan,
) -> Result<RuntimeStatementResult<BoxedPager>>
fn create_table( &self, plan: CreateTablePlan, ) -> Result<RuntimeStatementResult<BoxedPager>>
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<BoxedPager>>
fn alter_table( &self, plan: AlterTablePlan, ) -> Result<RuntimeStatementResult<BoxedPager>>
Alter a table within this namespace.
Source§fn create_index(
&self,
plan: CreateIndexPlan,
) -> Result<RuntimeStatementResult<BoxedPager>>
fn create_index( &self, plan: CreateIndexPlan, ) -> Result<RuntimeStatementResult<BoxedPager>>
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 create_view(&self, plan: CreateViewPlan) -> Result<()>
fn create_view(&self, plan: CreateViewPlan) -> Result<()>
Create a view inside this namespace.
Source§fn drop_view(&self, plan: DropViewPlan) -> Result<()>
fn drop_view(&self, plan: DropViewPlan) -> Result<()>
Drop a view from this namespace by forwarding the planned request.
Source§fn lookup_table(
&self,
canonical: &str,
) -> Result<Arc<ExecutorTable<BoxedPager>>>
fn lookup_table( &self, canonical: &str, ) -> Result<Arc<ExecutorTable<BoxedPager>>>
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<BoxedPager>>
fn execute_operation( &self, operation: PlanOperation, ) -> Result<TransactionResult<BoxedPager>>
Execute a generic plan operation. Namespaces that do not yet support
this entry point should override this method.
Auto Trait Implementations§
impl Freeze for PersistentRuntimeNamespace
impl !RefUnwindSafe for PersistentRuntimeNamespace
impl Send for PersistentRuntimeNamespace
impl Sync for PersistentRuntimeNamespace
impl Unpin for PersistentRuntimeNamespace
impl !UnwindSafe for PersistentRuntimeNamespace
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