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]

[src]

Create a new migrator tied to a PostgreSQL connection.

[src]

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.

[src]

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

[src]

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

[src]

Applies the specified migration.

[src]

Reverts the specified migration.

Auto Trait Implementations

impl<'a> !Send for PostgresAdapter<'a>

impl<'a> !Sync for PostgresAdapter<'a>