Struct kanidmd_lib::be::BackendWriteTransaction
source · [−]pub struct BackendWriteTransaction<'a> { /* private fields */ }
Implementations
sourceimpl<'a> BackendWriteTransaction<'a>
impl<'a> BackendWriteTransaction<'a>
pub fn create(
&self,
cid: &Cid,
entries: Vec<Entry<EntrySealed, EntryNew>>
) -> Result<Vec<Entry<EntrySealed, EntryCommitted>>, OperationError>
pub fn modify(
&self,
cid: &Cid,
pre_entries: &[Arc<EntrySealedCommitted>],
post_entries: &[EntrySealedCommitted]
) -> Result<(), OperationError>
pub fn reap_tombstones(&self, cid: &Cid) -> Result<usize, OperationError>
pub fn update_idxmeta(
&mut self,
idxkeys: Vec<IdxKey>
) -> Result<(), OperationError>
pub fn upgrade_reindex(&self, v: i64) -> Result<(), OperationError>
pub fn reindex(&self) -> Result<(), OperationError>
pub fn restore(&self, src_path: &str) -> Result<(), OperationError>
pub fn ruv_rebuild(&mut self) -> Result<(), OperationError>
pub fn commit(self) -> Result<(), OperationError>
pub fn get_db_s_uuid(&self) -> Uuid
sourcepub fn get_db_d_uuid(&self) -> Uuid
pub fn get_db_d_uuid(&self) -> Uuid
This pulls the domain UUID from the database
pub fn set_db_ts_max(&self, ts: Duration) -> Result<(), OperationError>
pub fn get_db_ts_max(&self, ts: Duration) -> Result<Duration, OperationError>
Trait Implementations
sourceimpl<'a> BackendTransaction for BackendWriteTransaction<'a>
impl<'a> BackendTransaction for BackendWriteTransaction<'a>
type IdlLayerType = IdlArcSqliteWriteTransaction<'a>
type RuvType = ReplicationUpdateVectorWriteTransaction<'a>
fn get_idlayer(&self) -> &mut IdlArcSqliteWriteTransaction<'a>
fn get_ruv(&self) -> &mut ReplicationUpdateVectorWriteTransaction<'a>
fn get_idxmeta_ref(&self) -> &IdxMeta
sourcefn filter2idl(
&self,
filt: &FilterResolved,
thres: usize
) -> Result<(IdList, FilterPlan), OperationError>
fn filter2idl(
&self,
filt: &FilterResolved,
thres: usize
) -> Result<(IdList, FilterPlan), OperationError>
Recursively apply a filter, transforming into IdList’s on the way. This builds a query execution log, so that it can be examined how an operation proceeded. Read more
fn search(
&self,
erl: &Limits,
filt: &Filter<FilterValidResolved>
) -> Result<Vec<Arc<EntrySealedCommitted>>, OperationError>
sourcefn exists(
&self,
erl: &Limits,
filt: &Filter<FilterValidResolved>
) -> Result<bool, OperationError>
fn exists(
&self,
erl: &Limits,
filt: &Filter<FilterValidResolved>
) -> Result<bool, OperationError>
Given a filter, assert some condition exists. Basically, this is a specialised case of search, where we don’t need to load any candidates if they match. This is heavily used in uuid refint and attr uniqueness. Read more
fn verify(&self) -> Vec<Result<(), ConsistencyError>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
fn verify_entry_index(
&self,
e: &Entry<EntrySealed, EntryCommitted>
) -> Result<(), ConsistencyError>
fn verify_indexes(&self) -> Vec<Result<(), ConsistencyError>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
fn verify_ruv(&self, results: &mut Vec<Result<(), ConsistencyError>>)
fn backup(&self, dst_path: &str) -> Result<(), OperationError>
fn name2uuid(&self, name: &str) -> Result<Option<Uuid>, OperationError>
fn uuid2spn(&self, uuid: Uuid) -> Result<Option<Value>, OperationError>
fn uuid2rdn(&self, uuid: Uuid) -> Result<Option<String>, OperationError>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for BackendWriteTransaction<'a>
impl<'a> !Send for BackendWriteTransaction<'a>
impl<'a> !Sync for BackendWriteTransaction<'a>
impl<'a> Unpin for BackendWriteTransaction<'a>
impl<'a> !UnwindSafe for BackendWriteTransaction<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more