#[repr(u8)]pub enum SingleStore {
Standard(StandardSingleStore),
}Variants§
Standard(StandardSingleStore)
Implementations§
Source§impl SingleStore
impl SingleStore
pub fn standard(config: SingleStoreConfig) -> Self
Source§impl SingleStore
impl SingleStore
pub fn testing_memory() -> Self
pub fn testing_memory_with_eventbus(event_bus: EventBus) -> Self
Trait Implementations§
Source§impl Clone for SingleStore
impl Clone for SingleStore
Source§fn clone(&self) -> SingleStore
fn clone(&self) -> SingleStore
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 SingleVersionCommit for SingleStore
impl SingleVersionCommit for SingleStore
Source§impl SingleVersionContains for SingleStore
impl SingleVersionContains for SingleStore
Source§impl SingleVersionGet for SingleStore
impl SingleVersionGet for SingleStore
Source§fn get(&self, key: &EncodedKey) -> Result<Option<SingleVersionValues>>
fn get(&self, key: &EncodedKey) -> Result<Option<SingleVersionValues>>
Get the value for a key.
Source§impl SingleVersionRange for SingleStore
impl SingleVersionRange for SingleStore
Source§fn range_batch(
&self,
range: EncodedKeyRange,
batch_size: u64,
) -> Result<SingleVersionBatch>
fn range_batch( &self, range: EncodedKeyRange, batch_size: u64, ) -> Result<SingleVersionBatch>
Fetch a batch of values in key order (ascending).
Source§fn range(&self, range: EncodedKeyRange) -> Result<SingleVersionBatch, Error>
fn range(&self, range: EncodedKeyRange) -> Result<SingleVersionBatch, Error>
Convenience method with default batch size.
Source§fn prefix(&self, prefix: &EncodedKey) -> Result<SingleVersionBatch, Error>
fn prefix(&self, prefix: &EncodedKey) -> Result<SingleVersionBatch, Error>
Range query with prefix.
Source§impl SingleVersionRangeRev for SingleStore
impl SingleVersionRangeRev for SingleStore
Source§fn range_rev_batch(
&self,
range: EncodedKeyRange,
batch_size: u64,
) -> Result<SingleVersionBatch>
fn range_rev_batch( &self, range: EncodedKeyRange, batch_size: u64, ) -> Result<SingleVersionBatch>
Fetch a batch of values in reverse key order (descending).
Source§fn range_rev(&self, range: EncodedKeyRange) -> Result<SingleVersionBatch, Error>
fn range_rev(&self, range: EncodedKeyRange) -> Result<SingleVersionBatch, Error>
Convenience method with default batch size.
Source§fn prefix_rev(&self, prefix: &EncodedKey) -> Result<SingleVersionBatch, Error>
fn prefix_rev(&self, prefix: &EncodedKey) -> Result<SingleVersionBatch, Error>
Reverse range query with prefix.
Source§impl SingleVersionRemove for SingleStore
impl SingleVersionRemove for SingleStore
Source§fn unset(
&mut self,
key: &EncodedKey,
values: EncodedValues,
) -> Result<(), Error>
fn unset( &mut self, key: &EncodedKey, values: EncodedValues, ) -> Result<(), Error>
Unset a key, preserving the deleted values for CDC and metrics.
Source§impl SingleVersionSet for SingleStore
impl SingleVersionSet for SingleStore
Source§fn set(&mut self, key: &EncodedKey, values: EncodedValues) -> Result<(), Error>
fn set(&mut self, key: &EncodedKey, values: EncodedValues) -> Result<(), Error>
Set a value for a key.
impl SingleVersionStore for SingleStore
Auto Trait Implementations§
impl Freeze for SingleStore
impl !RefUnwindSafe for SingleStore
impl Send for SingleStore
impl Sync for SingleStore
impl Unpin for SingleStore
impl UnsafeUnpin for SingleStore
impl !UnwindSafe for SingleStore
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