pub struct SqliteTempPathGuard { /* private fields */ }Expand description
RAII guard returned by SqliteConfig::test() / SqliteConfig::in_memory() that removes
the on-disk artifacts created under a temp / shared-memory directory when dropped.
Two artifact families are cleaned up:
- the file at the base path itself (used by the CDC backend), and
- the directory at
base.with_extension("")(where the embedded API factory dropsmulti.db/single.dband their-wal/-shmcompanions, seepkg/rust/reifydb/src/api/mod.rs).
DbPath::File paths are left alone; the caller owns those.
Implementations§
Trait Implementations§
Source§impl Debug for SqliteTempPathGuard
impl Debug for SqliteTempPathGuard
Source§impl Drop for SqliteTempPathGuard
impl Drop for SqliteTempPathGuard
Auto Trait Implementations§
impl Freeze for SqliteTempPathGuard
impl RefUnwindSafe for SqliteTempPathGuard
impl Send for SqliteTempPathGuard
impl Sync for SqliteTempPathGuard
impl Unpin for SqliteTempPathGuard
impl UnsafeUnpin for SqliteTempPathGuard
impl UnwindSafe for SqliteTempPathGuard
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