[][src]Trait nature_db::RelationDao

pub trait RelationDao: Sync + Send {
#[must_use]    fn get_relations<'life0, 'life1, 'life2, 'life3, 'async_trait, MC, M>(
        &'life0 self,
        from: &'life1 str,
        meta_cache_getter: &'life2 MC,
        meta_getter: &'life3 M
    ) -> Pin<Box<dyn Future<Output = Relations> + Send + 'async_trait>>
    where
        MC: MetaCache,
        M: MetaDao,
        MC: 'async_trait,
        M: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn insert<'life0, 'async_trait>(
        &'life0 self,
        one: RawRelation
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn delete<'life0, 'async_trait>(
        &'life0 self,
        one: RawRelation
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn update_flag<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        from: &'life1 str,
        to: &'life2 str,
        flag_f: i32
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn insert_by_biz<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        from: &'life1 str,
        to: &'life2 str,
        url: &'life3 str,
        protocol: &'life4 str
    ) -> Pin<Box<dyn Future<Output = Result<RawRelation>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        'life4: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn delete_by_biz<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        from: &'life1 str,
        to: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]fn get_relations<'life0, 'life1, 'life2, 'life3, 'async_trait, MC, M>(
    &'life0 self,
    from: &'life1 str,
    meta_cache_getter: &'life2 MC,
    meta_getter: &'life3 M
) -> Pin<Box<dyn Future<Output = Relations> + Send + 'async_trait>> where
    MC: MetaCache,
    M: MetaDao,
    MC: 'async_trait,
    M: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn insert<'life0, 'async_trait>(
    &'life0 self,
    one: RawRelation
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn delete<'life0, 'async_trait>(
    &'life0 self,
    one: RawRelation
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn update_flag<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    from: &'life1 str,
    to: &'life2 str,
    flag_f: i32
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn insert_by_biz<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
    &'life0 self,
    from: &'life1 str,
    to: &'life2 str,
    url: &'life3 str,
    protocol: &'life4 str
) -> Pin<Box<dyn Future<Output = Result<RawRelation>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    'life4: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn delete_by_biz<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    from: &'life1 str,
    to: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl RelationDao for RelationDaoImpl[src]

fn update_flag<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    from: &'life1 str,
    to: &'life2 str,
    flag_f: i32
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

from and to's form are full_key:version

fn insert_by_biz<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
    &'life0 self,
    from: &'life1 str,
    to: &'life2 str,
    url: &'life3 str,
    protocol: &'life4 str
) -> Pin<Box<dyn Future<Output = Result<RawRelation>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    'life4: 'async_trait,
    Self: 'async_trait, 
[src]

version will be set to 0

Loading content...