Trait sqlx::migrate::MigrationSource[][src]

pub trait MigrationSource<'s>: Debug {
    fn resolve(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Migration, Global>, Box<dyn Error + 'static + Sync + Send, Global>>> + 's + Send, Global>>; }

Required methods

fn resolve(
    self
) -> Pin<Box<dyn Future<Output = Result<Vec<Migration, Global>, Box<dyn Error + 'static + Sync + Send, Global>>> + 's + Send, Global>>
[src]

Implementations on Foreign Types

impl<'s> MigrationSource<'s> for &'s Path[src]

Implementation of the MigrationSource for std::path::Path.

The path has to point to a directory, which contains the migration SQL scripts. All these scripts must be stored in files with names using the format <VERSION>_<DESCRIPTION>.sql, where <VERSION> is a string that can be parsed into i64 and its value is greater than zero, and <DESCRIPTION> is a string.

pub fn resolve(
    self
) -> Pin<Box<dyn Future<Output = Result<Vec<Migration, Global>, Box<dyn Error + 'static + Sync + Send, Global>>> + 's + Send, Global>>
[src]

impl MigrationSource<'static> for PathBuf[src]

pub fn resolve(
    self
) -> Pin<Box<dyn Future<Output = Result<Vec<Migration, Global>, Box<dyn Error + 'static + Sync + Send, Global>>> + 'static + Send, Global>>
[src]

Implementors