MigrationSource

Trait MigrationSource 

pub trait MigrationSource<DB>
where DB: Backend,
{ // Required method fn migrations( &self, ) -> Result<Vec<Box<dyn Migration<DB>>>, Box<dyn Error + Send + Sync>>; }
Expand description

A migration source is an entity that can be used to receive a number of migrations from.

Required Methods§

fn migrations( &self, ) -> Result<Vec<Box<dyn Migration<DB>>>, Box<dyn Error + Send + Sync>>

Get a list of migrations associated with this migration source.

Implementations on Foreign Types§

§

impl<DB> MigrationSource<DB> for EmbeddedMigrations
where DB: Backend,

§

fn migrations( &self, ) -> Result<Vec<Box<dyn Migration<DB>>>, Box<dyn Error + Send + Sync>>

§

impl<DB> MigrationSource<DB> for FileBasedMigrations
where DB: Backend,

§

fn migrations( &self, ) -> Result<Vec<Box<dyn Migration<DB>>>, Box<dyn Error + Send + Sync>>

Implementors§