[][src]Struct rkv::store::multi::MultiStore

pub struct MultiStore<D> { /* fields omitted */ }

Implementations

impl<D> MultiStore<D> where
    D: BackendDatabase
[src]

pub fn get<'r, R, I, C, K>(
    &self,
    reader: &'r R,
    k: K
) -> Result<Iter<'r, I>, StoreError> where
    R: Readable<'r, Database = D, RoCursor = C>,
    I: BackendIter<'r>,
    C: BackendRoCursor<'r, Iter = I>,
    K: AsRef<[u8]> + 'r, 
[src]

Provides a cursor to all of the values for the duplicate entries that match this key

pub fn get_first<'r, R, K>(
    &self,
    reader: &'r R,
    k: K
) -> Result<Option<Value<'r>>, StoreError> where
    R: Readable<'r, Database = D>,
    K: AsRef<[u8]>, 
[src]

Provides the first value that matches this key

pub fn put<T, K>(
    &self,
    writer: &mut Writer<T>,
    k: K,
    v: &Value<'_>
) -> Result<(), StoreError> where
    T: BackendRwTransaction<Database = D>,
    K: AsRef<[u8]>, 
[src]

Insert a value at the specified key. This put will allow duplicate entries. If you wish to have duplicate entries rejected, use the put_with_flags function and specify NO_DUP_DATA

pub fn put_with_flags<T, K>(
    &self,
    writer: &mut Writer<T>,
    k: K,
    v: &Value<'_>,
    flags: T::Flags
) -> Result<(), StoreError> where
    T: BackendRwTransaction<Database = D>,
    K: AsRef<[u8]>, 
[src]

pub fn delete_all<T, K>(
    &self,
    writer: &mut Writer<T>,
    k: K
) -> Result<(), StoreError> where
    T: BackendRwTransaction<Database = D>,
    K: AsRef<[u8]>, 
[src]

pub fn delete<T, K>(
    &self,
    writer: &mut Writer<T>,
    k: K,
    v: &Value<'_>
) -> Result<(), StoreError> where
    T: BackendRwTransaction<Database = D>,
    K: AsRef<[u8]>, 
[src]

pub fn clear<T>(&self, writer: &mut Writer<T>) -> Result<(), StoreError> where
    T: BackendRwTransaction<Database = D>, 
[src]

Trait Implementations

impl<D: Clone> Clone for MultiStore<D>[src]

impl<D: Copy> Copy for MultiStore<D>[src]

impl<D: Debug> Debug for MultiStore<D>[src]

impl<D: Eq> Eq for MultiStore<D>[src]

impl<D: PartialEq> PartialEq<MultiStore<D>> for MultiStore<D>[src]

impl<D> StructuralEq for MultiStore<D>[src]

impl<D> StructuralPartialEq for MultiStore<D>[src]

Auto Trait Implementations

impl<D> RefUnwindSafe for MultiStore<D> where
    D: RefUnwindSafe

impl<D> Send for MultiStore<D> where
    D: Send

impl<D> Sync for MultiStore<D> where
    D: Sync

impl<D> Unpin for MultiStore<D> where
    D: Unpin

impl<D> UnwindSafe for MultiStore<D> where
    D: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.