[][src]Trait diesel::migration::MigrationConnection

pub trait MigrationConnection: Connection {
    fn setup(&self) -> QueryResult<usize>;
}

A trait indicating that a connection could be used to manage migrations

Only custom backend implementations need to think about this trait

Required methods

fn setup(&self) -> QueryResult<usize>

Setup the following table:

diesel::table! {
     __diesel_schema_migrations(version) {
         version -> Text,
         /// defaults to `CURRENT_TIMESTAMP`
         run_on -> Timestamp,
     }
}
Loading content...

Implementors

impl MigrationConnection for MysqlConnection[src]

impl MigrationConnection for PgConnection[src]

impl MigrationConnection for SqliteConnection[src]

Loading content...