Struct schemamama_postgres::PostgresAdapter [] [src]

pub struct PostgresAdapter<'a> { /* fields omitted */ }

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

Methods

impl<'a> PostgresAdapter<'a>
[src]

Create a new migrator tied to a PostgreSQL connection.

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 PostgresAdapter<'a>
[src]

An alias to a specific trait that extends Migration. Typically, the aforementioned trait will declare functions that the adapter will use to migrate upwards and downwards. Read more

An adapter-specific error type that can be returned from any of this trait's methods.

Returns the latest migration version, or None if no migrations have been recorded.

Returns a set of the versions of all of the currently applied migrations.

Applies the specified migration.

Reverts the specified migration.