pub struct RepositoryGraphStagingGuard<'store> { /* private fields */ }Expand description
Disposable typed repository-graph writer used before main index publication.
Implementations§
Source§impl RepositoryGraphStagingGuard<'_>
impl RepositoryGraphStagingGuard<'_>
Sourcepub fn append_entity_refs(&mut self, entities: &[&GraphEntity]) -> DbResult<()>
pub fn append_entity_refs(&mut self, entities: &[&GraphEntity]) -> DbResult<()>
Append borrowed entity rows without cloning the staged domain objects.
§Errors
Returns an error for foreign project or generation rows, stable-key
collisions, or SQLite failures.
Sourcepub fn append_batch(
&mut self,
entities: &[GraphEntity],
relations: &[LogicalRelation],
occurrences: &[RelationOccurrence],
coverage: &[CoverageRecord],
entity_exports: &[EntityResolutionKey],
relation_dependencies: &[RelationDependencyKey],
) -> DbResult<()>
pub fn append_batch( &mut self, entities: &[GraphEntity], relations: &[LogicalRelation], occurrences: &[RelationOccurrence], coverage: &[CoverageRecord], entity_exports: &[EntityResolutionKey], relation_dependencies: &[RelationDependencyKey], ) -> DbResult<()>
Append one fully validated graph and resolution-key batch.
§Errors
Returns an error for foreign project or generation rows, invalid owner
bindings, stable-key collisions, or SQLite failures.
Auto Trait Implementations§
impl<'store> Freeze for RepositoryGraphStagingGuard<'store>
impl<'store> !RefUnwindSafe for RepositoryGraphStagingGuard<'store>
impl<'store> !Send for RepositoryGraphStagingGuard<'store>
impl<'store> !Sync for RepositoryGraphStagingGuard<'store>
impl<'store> Unpin for RepositoryGraphStagingGuard<'store>
impl<'store> !UnwindSafe for RepositoryGraphStagingGuard<'store>
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