Trait DatabaseApi
Source pub trait DatabaseApi {
type TableSizes: Serialize + Send + Sync + 'static;
type MigrationStatus: Serialize + Send + Sync + 'static;
// Required methods
fn get_table_sizes<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::TableSizes>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_migration_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::MigrationStatus>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}