Struct tarantool_rs::schema::GenericIndex
source · pub struct GenericIndex<E, M, S> { /* private fields */ }Expand description
Tarantool index of specific space.
This is a wrapper around Executor, which allow to make index-related requests
on specific index.
Implementations§
source§impl<E, M, S> GenericIndex<E, M, S>
impl<E, M, S> GenericIndex<E, M, S>
pub fn into_executor(self) -> E
source§impl<E, M, S> GenericIndex<E, M, S>where
M: Borrow<IndexMetadata>,
S: Borrow<SpaceMetadata>,
impl<E, M, S> GenericIndex<E, M, S>where M: Borrow<IndexMetadata>, S: Borrow<SpaceMetadata>,
pub fn executor(&self) -> &E
pub fn metadata(&self) -> &IndexMetadata
pub fn space_metadata(&self) -> &SpaceMetadata
source§impl<E, M, S> GenericIndex<E, M, S>where
E: Executor,
M: Borrow<IndexMetadata>,
S: Borrow<SpaceMetadata>,
impl<E, M, S> GenericIndex<E, M, S>where E: Executor, M: Borrow<IndexMetadata>, S: Borrow<SpaceMetadata>,
sourcepub async fn select<T, A>(
&self,
limit: Option<u32>,
offset: Option<u32>,
iterator: Option<IteratorType>,
keys: A
) -> Result<Vec<T>>where
T: DeserializeOwned,
A: Tuple + Send,
pub async fn select<T, A>( &self, limit: Option<u32>, offset: Option<u32>, iterator: Option<IteratorType>, keys: A ) -> Result<Vec<T>>where T: DeserializeOwned, A: Tuple + Send,
Call select on current index.
For details see ExecutorExt::select.
sourcepub async fn update<K, O>(&self, keys: K, ops: O) -> Result<DmoResponse>where
K: Tuple + Send,
O: Tuple + Send,
pub async fn update<K, O>(&self, keys: K, ops: O) -> Result<DmoResponse>where K: Tuple + Send, O: Tuple + Send,
Call update on current index.
For details see ExecutorExt::update.
sourcepub async fn delete<T>(&self, keys: T) -> Result<DmoResponse>where
T: Tuple + Send,
pub async fn delete<T>(&self, keys: T) -> Result<DmoResponse>where T: Tuple + Send,
Call delete on current index.
For details see ExecutorExt::delete.
source§impl GenericIndex<Transaction, Arc<IndexMetadata, Global>, Arc<SpaceMetadata, Global>>
impl GenericIndex<Transaction, Arc<IndexMetadata, Global>, Arc<SpaceMetadata, Global>>
Trait Implementations§
Auto Trait Implementations§
impl<E, M, S> RefUnwindSafe for GenericIndex<E, M, S>where E: RefUnwindSafe, M: RefUnwindSafe, S: RefUnwindSafe,
impl<E, M, S> Send for GenericIndex<E, M, S>where E: Send, M: Send, S: Send,
impl<E, M, S> Sync for GenericIndex<E, M, S>where E: Sync, M: Sync, S: Sync,
impl<E, M, S> Unpin for GenericIndex<E, M, S>where E: Unpin, M: Unpin, S: Unpin,
impl<E, M, S> UnwindSafe for GenericIndex<E, M, S>where E: UnwindSafe, M: UnwindSafe, S: UnwindSafe,
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