Struct async_sea_orm_session::migration::Migrator
source · [−]pub struct Migrator;Available on crate feature
migration only.Trait Implementations
sourceimpl MigratorTrait for Migrator
impl MigratorTrait for Migrator
sourcefn migrations() -> Vec<Box<dyn MigrationTrait>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn migrations() -> Vec<Box<dyn MigrationTrait>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Vector of migrations in time sequence
sourcefn get_migration_files() -> Vec<Migration, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn get_migration_files() -> Vec<Migration, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Get list of migrations wrapped in
Migration structsourcefn get_migration_models<'life0, 'async_trait>(
db: &'life0 DatabaseConnection
) -> Pin<Box<dyn Future<Output = Result<Vec<Model, Global>, DbErr>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_migration_models<'life0, 'async_trait>(
db: &'life0 DatabaseConnection
) -> Pin<Box<dyn Future<Output = Result<Vec<Model, Global>, DbErr>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Get list of applied migrations from database
sourcefn get_migration_with_status<'life0, 'async_trait>(
db: &'life0 DatabaseConnection
) -> Pin<Box<dyn Future<Output = Result<Vec<Migration, Global>, DbErr>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_migration_with_status<'life0, 'async_trait>(
db: &'life0 DatabaseConnection
) -> Pin<Box<dyn Future<Output = Result<Vec<Migration, Global>, DbErr>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Get list of migrations with status
sourcefn get_pending_migrations<'life0, 'async_trait>(
db: &'life0 DatabaseConnection
) -> Pin<Box<dyn Future<Output = Result<Vec<Migration, Global>, DbErr>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_pending_migrations<'life0, 'async_trait>(
db: &'life0 DatabaseConnection
) -> Pin<Box<dyn Future<Output = Result<Vec<Migration, Global>, DbErr>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Get list of pending migrations
sourcefn get_applied_migrations<'life0, 'async_trait>(
db: &'life0 DatabaseConnection
) -> Pin<Box<dyn Future<Output = Result<Vec<Migration, Global>, DbErr>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_applied_migrations<'life0, 'async_trait>(
db: &'life0 DatabaseConnection
) -> Pin<Box<dyn Future<Output = Result<Vec<Migration, Global>, DbErr>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Get list of applied migrations
sourcefn install<'life0, 'async_trait>(
db: &'life0 DatabaseConnection
) -> Pin<Box<dyn Future<Output = Result<(), DbErr>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
fn install<'life0, 'async_trait>(
db: &'life0 DatabaseConnection
) -> Pin<Box<dyn Future<Output = Result<(), DbErr>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Create migration table
seaql_migrations in the databasesourcefn fresh<'life0, 'async_trait>(
db: &'life0 DatabaseConnection
) -> Pin<Box<dyn Future<Output = Result<(), DbErr>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn fresh<'life0, 'async_trait>(
db: &'life0 DatabaseConnection
) -> Pin<Box<dyn Future<Output = Result<(), DbErr>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Drop all tables from the database, then reapply all migrations
sourcefn refresh<'life0, 'async_trait>(
db: &'life0 DatabaseConnection
) -> Pin<Box<dyn Future<Output = Result<(), DbErr>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn refresh<'life0, 'async_trait>(
db: &'life0 DatabaseConnection
) -> Pin<Box<dyn Future<Output = Result<(), DbErr>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Rollback all applied migrations, then reapply all migrations
sourcefn reset<'life0, 'async_trait>(
db: &'life0 DatabaseConnection
) -> Pin<Box<dyn Future<Output = Result<(), DbErr>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn reset<'life0, 'async_trait>(
db: &'life0 DatabaseConnection
) -> Pin<Box<dyn Future<Output = Result<(), DbErr>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Rollback all applied migrations
sourcefn status<'life0, 'async_trait>(
db: &'life0 DatabaseConnection
) -> Pin<Box<dyn Future<Output = Result<(), DbErr>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
fn status<'life0, 'async_trait>(
db: &'life0 DatabaseConnection
) -> Pin<Box<dyn Future<Output = Result<(), DbErr>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Check the status of all migrations
Auto Trait Implementations
impl RefUnwindSafe for Migrator
impl Send for Migrator
impl Sync for Migrator
impl Unpin for Migrator
impl UnwindSafe for Migrator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more