pub trait RelationDao: Sync + Send {
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 + 'async_trait,
M: MetaDao + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn insert<'life0, 'async_trait>(
&'life0 self,
one: RawRelation
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn delete<'life0, 'async_trait>(
&'life0 self,
one: RawRelation
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
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<u64>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait;
fn delete_by_biz<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
from: &'life1 str,
to: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn id_great_than<'life0, 'async_trait>(
&'life0 self,
from: i32,
limit: i32
) -> Pin<Box<dyn Future<Output = Result<Vec<RawRelation>>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
}