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.
Sourcepub fn set_document_unresolved_reasons(
&mut self,
reasons: &[(LogicalRelationKey, DocumentTargetUnresolvedReason)],
) -> DbResult<()>
pub fn set_document_unresolved_reasons( &mut self, reasons: &[(LogicalRelationKey, DocumentTargetUnresolvedReason)], ) -> DbResult<()>
Attach closed reasons to staged unresolved documents relations.
§Errors
Returns an error without partial mutation for duplicate keys,
incompatible staged relations, or SQLite failures.
Sourcepub fn set_document_unresolved_reasons_controlled(
&mut self,
reasons: &[(LogicalRelationKey, DocumentTargetUnresolvedReason)],
control: &IndexWorkControl,
) -> DbResult<()>
pub fn set_document_unresolved_reasons_controlled( &mut self, reasons: &[(LogicalRelationKey, DocumentTargetUnresolvedReason)], control: &IndexWorkControl, ) -> DbResult<()>
Attach staged document reasons while observing publication cancellation.
§Errors
Returns an error without partial mutation when cancellation, duplicate
keys, incompatible staged relations, or SQLite failures occur.