TxnCatalogView

Struct TxnCatalogView 

Source
pub struct TxnCatalogView<'a, S: KVStore> { /* private fields */ }
Expand description

トランザクション内(オーバーレイ込み)で参照するための Catalog ビュー。

DML/SELECT の実行や Planner の参照用途に使う。書き込み系 API は利用しない前提のため、 Catalog trait の書き込みメソッドは unreachable!() とする。

Implementations§

Source§

impl<'a, S: KVStore> TxnCatalogView<'a, S>

Source

pub fn new( catalog: &'a PersistentCatalog<S>, overlay: &'a CatalogOverlay, ) -> Self

Trait Implementations§

Source§

impl<'a, S: KVStore> Catalog for TxnCatalogView<'a, S>

Source§

fn create_table(&mut self, _table: TableMetadata) -> Result<(), PlannerError>

Create a new table in the catalog. Read more
Source§

fn get_table(&self, name: &str) -> Option<&TableMetadata>

Get a table by name. Read more
Source§

fn drop_table(&mut self, _name: &str) -> Result<(), PlannerError>

Drop a table from the catalog. Read more
Source§

fn create_index(&mut self, _index: IndexMetadata) -> Result<(), PlannerError>

Create a new index in the catalog. Read more
Source§

fn get_index(&self, name: &str) -> Option<&IndexMetadata>

Get an index by name. Read more
Source§

fn get_indexes_for_table(&self, table: &str) -> Vec<&IndexMetadata>

Get all indexes for a table. Read more
Source§

fn drop_index(&mut self, _name: &str) -> Result<(), PlannerError>

Drop an index from the catalog. Read more
Source§

fn table_exists(&self, name: &str) -> bool

Check if a table exists.
Source§

fn index_exists(&self, name: &str) -> bool

Check if an index exists.
Source§

fn next_table_id(&mut self) -> u32

Generate the next unique table ID. Read more
Source§

fn next_index_id(&mut self) -> u32

Generate the next unique index ID. Read more

Auto Trait Implementations§

§

impl<'a, S> Freeze for TxnCatalogView<'a, S>

§

impl<'a, S> RefUnwindSafe for TxnCatalogView<'a, S>
where S: RefUnwindSafe,

§

impl<'a, S> Send for TxnCatalogView<'a, S>

§

impl<'a, S> Sync for TxnCatalogView<'a, S>

§

impl<'a, S> Unpin for TxnCatalogView<'a, S>

§

impl<'a, S> UnwindSafe for TxnCatalogView<'a, S>
where S: RefUnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> MaybeSend for T
where T: Send,