struct StagedGraphDatabase {
store: Option<AtlasStore>,
directory: Option<TempDir>,
_lease: File,
}Expand description
File-backed graph rows staged outside the main database writer transaction.
Fields§
§store: Option<AtlasStore>Open typed store copied into the main publication.
directory: Option<TempDir>Owning directory removed after the store closes.
_lease: FileCross-process lease preventing restart cleanup while the stage is active.
Implementations§
Source§impl StagedGraphDatabase
impl StagedGraphDatabase
Sourcefn store(&self) -> Result<&AtlasStore, CliError>
fn store(&self) -> Result<&AtlasStore, CliError>
Return the live typed staging store.
Sourcefn store_mut(&mut self) -> Result<&mut AtlasStore, CliError>
fn store_mut(&mut self) -> Result<&mut AtlasStore, CliError>
Return the live typed staging store mutably during preparation.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for StagedGraphDatabase
impl !RefUnwindSafe for StagedGraphDatabase
impl Send for StagedGraphDatabase
impl !Sync for StagedGraphDatabase
impl Unpin for StagedGraphDatabase
impl !UnwindSafe for StagedGraphDatabase
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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