Trait kanidm::be::BackendTransaction[][src]

pub trait BackendTransaction {
    type IdlLayerType: IdlArcSqliteTransaction;
    fn get_idlayer(&self) -> &mut Self::IdlLayerType;
fn get_idxmeta_ref(&self) -> &IdxMeta; fn filter2idl(
        &self,
        filt: &FilterResolved,
        thres: usize
    ) -> Result<(IdList, FilterPlan), OperationError> { ... }
fn search(
        &self,
        erl: &Limits,
        filt: &Filter<FilterValidResolved>
    ) -> Result<Vec<Arc<EntrySealedCommitted>>, OperationError> { ... }
fn exists(
        &self,
        erl: &Limits,
        filt: &Filter<FilterValidResolved>
    ) -> Result<bool, OperationError> { ... }
fn verify(&self) -> Vec<Result<(), ConsistencyError>>
Notable traits for Vec<u8, A>
impl<A> Write for Vec<u8, A> where
    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
{ ... }
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> { ... } }

Associated Types

Required methods

Provided methods

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.

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.

fn verify_entry_index(
    &self,
    e: &Entry<EntrySealed, EntryCommitted>
) -> Result<(), ConsistencyError>

Implementors