pub struct ChangedIdentities { /* private fields */ }Expand description
The rows a transaction changed, which reads at a fixed snapshot take as views.
Implementations§
Source§impl ChangedIdentities
impl ChangedIdentities
pub fn new(control: &StorageReadControl) -> StorageBackendResult<Self>
Sourcepub fn note(
&mut self,
generation: &RelationGeneration,
id: DocId,
before: bool,
present: bool,
control: &StorageReadControl,
) -> StorageBackendResult<()>
pub fn note( &mut self, generation: &RelationGeneration, id: DocId, before: bool, present: bool, control: &StorageReadControl, ) -> StorageBackendResult<()>
Record that the row id of relation generation generation is present now or not. before is whether the row was present before this change, which only a first change of the row records.
pub fn savepoint(&mut self, id: StorageSavepointId) -> StorageBackendResult<()>
Sourcepub fn release(&mut self, id: StorageSavepointId) -> StorageBackendResult<bool>
pub fn release(&mut self, id: StorageSavepointId) -> StorageBackendResult<bool>
Release the savepoint id and those after it, keeping every change. Returns false when this index does not hold the savepoint.
Sourcepub fn rollback_to(
&mut self,
id: StorageSavepointId,
) -> StorageBackendResult<bool>
pub fn rollback_to( &mut self, id: StorageSavepointId, ) -> StorageBackendResult<bool>
Return to the savepoint id, keeping it for another rollback. Returns false when this index does not hold the savepoint.
Sourcepub fn counts(&self, generation: &RelationGeneration) -> ChangedRowCounts
pub fn counts(&self, generation: &RelationGeneration) -> ChangedRowCounts
The counted changes of relation generation generation.
Sourcepub fn view(
&mut self,
generation: &RelationGeneration,
) -> StorageBackendResult<Option<ChangedIdentitiesView>>
pub fn view( &mut self, generation: &RelationGeneration, ) -> StorageBackendResult<Option<ChangedIdentitiesView>>
An immutable view of the changes of relation generation generation, which later changes do not alter; None when the transaction changed no row of it.
Auto Trait Implementations§
impl !RefUnwindSafe for ChangedIdentities
impl !UnwindSafe for ChangedIdentities
impl Freeze for ChangedIdentities
impl Send for ChangedIdentities
impl Sync for ChangedIdentities
impl Unpin for ChangedIdentities
impl UnsafeUnpin for ChangedIdentities
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> ErasedDestructor for Twhere
T: 'static,
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