Struct schemamama_rusqlite::SqliteAdapter [] [src]

pub struct SqliteAdapter<'a> {
    // some fields omitted
}

An adapter that allows its migrations to act upon PostgreSQL connection transactions.

Methods

impl<'a> SqliteAdapter<'a>

fn new(connection: &'a SqliteConnection) -> SqliteAdapter

Create a new migrator tied to a PostgreSQL connection.

fn setup_schema(&self)

Create the tables Schemamama requires to keep track of schema state. If the tables already exist, this function has no operation.

Trait Implementations

impl<'a> Adapter for SqliteAdapter<'a>

type MigrationType = SqliteMigration

fn current_version(&self) -> Option<Version>

fn migrated_versions(&self) -> BTreeSet<Version>

fn apply_migration(&self, migration: &SqliteMigration)

fn revert_migration(&self, migration: &SqliteMigration)