[][src]Trait ena::sql::QueriesExecutor

pub trait QueriesExecutor<S, R> {
#[must_use]    fn init_type<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn init_schema<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        schema: &'life1 str,
        engine: Database,
        charset: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn init_metadata<'life0, 'life1, 'async_trait>(
        &'life0 self,
        engine: Database,
        charset: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn init_board<'life0, 'life1, 'async_trait>(
        &'life0 self,
        board: YotsubaBoard,
        engine: Database,
        charset: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn init_views<'life0, 'async_trait>(
        &'life0 self,
        board: YotsubaBoard
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn update_metadata<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        statements: &'life1 StatementStore<S>,
        endpoint: YotsubaEndpoint,
        board: YotsubaBoard,
        item: &'life2 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn update_thread<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        statements: &'life1 StatementStore<S>,
        endpoint: YotsubaEndpoint,
        board: YotsubaBoard,
        item: &'life2 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn delete<'life0, 'life1, 'async_trait>(
        &'life0 self,
        statements: &'life1 StatementStore<S>,
        endpoint: YotsubaEndpoint,
        board: YotsubaBoard,
        no: u64
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn update_deleteds<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        statements: &'life1 StatementStore<S>,
        endpoint: YotsubaEndpoint,
        board: YotsubaBoard,
        thread: u64,
        item: &'life2 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn update_hash<'life0, 'life1, 'async_trait>(
        &'life0 self,
        statements: &'life1 StatementStore<S>,
        endpoint: YotsubaEndpoint,
        board: YotsubaBoard,
        no: u64,
        hash_type: YotsubaStatement,
        hashsum: Vec<u8>
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn medias<'life0, 'life1, 'async_trait>(
        &'life0 self,
        statements: &'life1 StatementStore<S>,
        endpoint: YotsubaEndpoint,
        board: YotsubaBoard,
        no: u64
    ) -> Pin<Box<dyn Future<Output = Result<Vec<R>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn threads<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        statements: &'life1 StatementStore<S>,
        endpoint: YotsubaEndpoint,
        board: YotsubaBoard,
        item: &'life2 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<Queue>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn threads_modified<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        statements: &'life1 StatementStore<S>,
        endpoint: YotsubaEndpoint,
        board: YotsubaBoard,
        new_threads: &'life2 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<Queue>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn threads_combined<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        statements: &'life1 StatementStore<S>,
        endpoint: YotsubaEndpoint,
        board: YotsubaBoard,
        new_threads: &'life2 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<Queue>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn metadata<'life0, 'life1, 'async_trait>(
        &'life0 self,
        statements: &'life1 StatementStore<S>,
        endpoint: YotsubaEndpoint,
        board: YotsubaBoard
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Executors for all SQL queries

Required methods

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

#[must_use]fn init_schema<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    schema: &'life1 str,
    engine: Database,
    charset: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn init_metadata<'life0, 'life1, 'async_trait>(
    &'life0 self,
    engine: Database,
    charset: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn init_board<'life0, 'life1, 'async_trait>(
    &'life0 self,
    board: YotsubaBoard,
    engine: Database,
    charset: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn init_views<'life0, 'async_trait>(
    &'life0 self,
    board: YotsubaBoard
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn update_metadata<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    statements: &'life1 StatementStore<S>,
    endpoint: YotsubaEndpoint,
    board: YotsubaBoard,
    item: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn update_thread<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    statements: &'life1 StatementStore<S>,
    endpoint: YotsubaEndpoint,
    board: YotsubaBoard,
    item: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn delete<'life0, 'life1, 'async_trait>(
    &'life0 self,
    statements: &'life1 StatementStore<S>,
    endpoint: YotsubaEndpoint,
    board: YotsubaBoard,
    no: u64
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn update_deleteds<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    statements: &'life1 StatementStore<S>,
    endpoint: YotsubaEndpoint,
    board: YotsubaBoard,
    thread: u64,
    item: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn update_hash<'life0, 'life1, 'async_trait>(
    &'life0 self,
    statements: &'life1 StatementStore<S>,
    endpoint: YotsubaEndpoint,
    board: YotsubaBoard,
    no: u64,
    hash_type: YotsubaStatement,
    hashsum: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn medias<'life0, 'life1, 'async_trait>(
    &'life0 self,
    statements: &'life1 StatementStore<S>,
    endpoint: YotsubaEndpoint,
    board: YotsubaBoard,
    no: u64
) -> Pin<Box<dyn Future<Output = Result<Vec<R>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn threads<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    statements: &'life1 StatementStore<S>,
    endpoint: YotsubaEndpoint,
    board: YotsubaBoard,
    item: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<Queue>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn threads_modified<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    statements: &'life1 StatementStore<S>,
    endpoint: YotsubaEndpoint,
    board: YotsubaBoard,
    new_threads: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<Queue>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn threads_combined<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    statements: &'life1 StatementStore<S>,
    endpoint: YotsubaEndpoint,
    board: YotsubaBoard,
    new_threads: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<Queue>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn metadata<'life0, 'life1, 'async_trait>(
    &'life0 self,
    statements: &'life1 StatementStore<S>,
    endpoint: YotsubaEndpoint,
    board: YotsubaBoard
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

Loading content...