pub struct NativeWosBackend { /* private fields */ }Expand description
Tier 3: 자체 구현 WOS — sled 의존 없음. DashMap으로 테이블별 독립 락 제공.
Implementations§
Source§impl NativeWosBackend
impl NativeWosBackend
pub fn open(base_path: &Path) -> DbxResult<Self>
Sourcepub fn open_with_mode(
base_path: &Path,
mode: DirtyBufferMode,
) -> DbxResult<Self>
pub fn open_with_mode( base_path: &Path, mode: DirtyBufferMode, ) -> DbxResult<Self>
dirty 버퍼 모드를 지정하여 열기.
Sourcepub fn open_temporary() -> DbxResult<Self>
pub fn open_temporary() -> DbxResult<Self>
임시 백엔드 (테스트 및 in-memory 모드용)
Sourcepub fn open_temporary_with_mode(mode: DirtyBufferMode) -> DbxResult<Self>
pub fn open_temporary_with_mode(mode: DirtyBufferMode) -> DbxResult<Self>
임시 백엔드 + dirty 모드 지정
Trait Implementations§
Source§impl StorageBackend for NativeWosBackend
impl StorageBackend for NativeWosBackend
Source§fn insert(&self, table: &str, key: &[u8], value: &[u8]) -> DbxResult<()>
fn insert(&self, table: &str, key: &[u8], value: &[u8]) -> DbxResult<()>
Insert a key-value pair.
Source§fn scan<R: RangeBounds<Vec<u8>> + Clone>(
&self,
table: &str,
range: R,
) -> DbxResult<Vec<(Vec<u8>, Vec<u8>)>>
fn scan<R: RangeBounds<Vec<u8>> + Clone>( &self, table: &str, range: R, ) -> DbxResult<Vec<(Vec<u8>, Vec<u8>)>>
Scan a range of keys.
Source§fn scan_one<R: RangeBounds<Vec<u8>> + Clone>(
&self,
table: &str,
range: R,
) -> DbxResult<Option<(Vec<u8>, Vec<u8>)>>
fn scan_one<R: RangeBounds<Vec<u8>> + Clone>( &self, table: &str, range: R, ) -> DbxResult<Option<(Vec<u8>, Vec<u8>)>>
Scan a single key-value pair in a range (optimized).
Source§fn count(&self, table: &str) -> DbxResult<usize>
fn count(&self, table: &str) -> DbxResult<usize>
Return the number of keys in the given table.
Auto Trait Implementations§
impl Freeze for NativeWosBackend
impl !RefUnwindSafe for NativeWosBackend
impl Send for NativeWosBackend
impl Sync for NativeWosBackend
impl Unpin for NativeWosBackend
impl UnsafeUnpin for NativeWosBackend
impl UnwindSafe for NativeWosBackend
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> 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