RepositoryGraphStagingGuard

Struct RepositoryGraphStagingGuard 

Source
pub struct RepositoryGraphStagingGuard<'store> { /* private fields */ }
Expand description

Disposable typed repository-graph writer used before main index publication.

Implementations§

Source§

impl RepositoryGraphStagingGuard<'_>

Source

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.

Source

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.

Source

pub fn complete(self) -> DbResult<()>

Commit the staged graph and bind it to the requested generation.

§Errors

Returns an error when SQLite cannot persist the generation or commit.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,