pub struct Storage {
pub parquet: ParquetStore,
pub sync_db: SyncDb,
}Expand description
Storage manager combining Parquet store and sync database
Fields§
§parquet: ParquetStore§sync_db: SyncDbImplementations§
Source§impl Storage
impl Storage
Sourcepub fn open_default() -> Result<Self>
pub fn open_default() -> Result<Self>
Open storage at the default location
Sourcepub fn open_in_memory(temp_path: PathBuf) -> Result<Self>
pub fn open_in_memory(temp_path: PathBuf) -> Result<Self>
Open in-memory storage (for testing)
Sourcepub fn clone_with_new_db(&self) -> Result<Self>
pub fn clone_with_new_db(&self) -> Result<Self>
Create a new storage handle that shares the Parquet store but opens a new SyncDb connection.
Auto Trait Implementations§
impl !Freeze for Storage
impl !RefUnwindSafe for Storage
impl Send for Storage
impl !Sync for Storage
impl Unpin for Storage
impl UnsafeUnpin for Storage
impl !UnwindSafe for Storage
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