[][src]Struct schemamama_postgres::PostgresAdapter

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

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

Methods

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

pub fn new(connection: &'a dyn GenericConnection) -> PostgresAdapter<'a>[src]

Create a new migrator tied to a PostgreSQL connection.

pub fn with_metadata_table(
    connection: &'a dyn GenericConnection,
    metadata_table: &'static str
) -> PostgresAdapter<'a>
[src]

Create a new migrator tied to a PostgreSQL connection with custom metadata table name

pub fn setup_schema(&self) -> Result<(), PostgresError>[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]

type MigrationType = dyn PostgresMigration

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

type Error = PostgresError

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

Auto Trait Implementations

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

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

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

impl<'a> Unpin for PostgresAdapter<'a>

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.