Trait stry_common::backend::Backend[][src]

pub trait Backend<Err>: BackendEntry<User, Err> + BackendEntry<Comment, Err> + BackendEntry<Part, Err> + BackendEntry<Post, Err> + BackendEntry<Chapter, Err> + BackendEntry<Origin, Err> + BackendEntry<Warning, Err> + BackendEntry<Pairing, Err> + BackendEntry<Character, Err> + BackendEntry<Tag, Err> + BackendEntry<Story, Err> + BackendEntry<Series, Err> + BackendEntry<Category, Err> + BackendEntry<Page, Err> where
    Err: Error
{ #[must_use] fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), Err>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

A supported database backend that depends on a series of entries.

Requires that the backend also implements BackendEntry for these types (sharing the same error type):

Required methods

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

Run any missing migration on the database backend.

Loading content...

Implementors

Loading content...