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>
impl<'a, S: KVStore> TxnCatalogView<'a, S>
pub fn new( catalog: &'a PersistentCatalog<S>, overlay: &'a CatalogOverlay, ) -> Self
Trait Implementations§
Source§impl<'a, S: KVStore> Catalog for TxnCatalogView<'a, S>
impl<'a, S: KVStore> Catalog for TxnCatalogView<'a, S>
Source§fn create_table(&mut self, _table: TableMetadata) -> Result<(), PlannerError>
fn create_table(&mut self, _table: TableMetadata) -> Result<(), PlannerError>
Create a new table in the catalog. Read more
Source§fn drop_table(&mut self, _name: &str) -> Result<(), PlannerError>
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>
fn create_index(&mut self, _index: IndexMetadata) -> Result<(), PlannerError>
Create a new index in the catalog. Read more
Source§fn get_indexes_for_table(&self, table: &str) -> Vec<&IndexMetadata>
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>
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
fn table_exists(&self, name: &str) -> bool
Check if a table exists.
Source§fn index_exists(&self, name: &str) -> bool
fn index_exists(&self, name: &str) -> bool
Check if an index exists.
Source§fn next_table_id(&mut self) -> u32
fn next_table_id(&mut self) -> u32
Generate the next unique table ID. Read more
Source§fn next_index_id(&mut self) -> u32
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> 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