pub(crate) trait DatabaseMetadataSource {
// Required methods
fn get_table_sizes(
&self,
) -> impl Send + Future<Output = Result<Vec<TableSize>>>;
fn get_migration_status(
&self,
) -> impl Send + Future<Output = Result<Vec<MigrationStatus>>>;
}Expand description
Data source for database metadata and statistics.
This trait is only implemented by SQL-based storage backends (PostgreSQL and SQLite).
Required Methods§
Sourcefn get_table_sizes(&self) -> impl Send + Future<Output = Result<Vec<TableSize>>>
fn get_table_sizes(&self) -> impl Send + Future<Output = Result<Vec<TableSize>>>
Get the sizes of all tables in the database.
Sourcefn get_migration_status(
&self,
) -> impl Send + Future<Output = Result<Vec<MigrationStatus>>>
fn get_migration_status( &self, ) -> impl Send + Future<Output = Result<Vec<MigrationStatus>>>
Get the status of all deferred background migrations.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.