Struct schemer_postgres::PostgresAdapter [] [src]

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

Adapter between schemer and PostgreSQL.

Methods

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

[src]

Construct a PostgreSQL schemer adapter.

table_name specifies the name of the table that schemer will use for storing metadata about applied migrations. If None, a default will be used.

let conn = postgres::Connection::connect(
    "postgresql://postgres@localhost/?search_path=pg_temp",
    postgres::TlsMode::None).unwrap();
let adapter = schemer_postgres::PostgresAdapter::new(&conn, None);

[src]

Initialize the schemer metadata schema. This must be called before using Migrator with this adapter. This is safe to call multiple times.

Trait Implementations

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

Type migrations must implement for this adapter.

Type of errors returned by this adapter.

[src]

Returns the set of IDs for migrations that have been applied.

[src]

Apply a single migration.

[src]

Revert a single migration.