Struct migra::clients::PostgresClient[][src]

pub struct PostgresClient { /* fields omitted */ }
Expand description

Predefined Postgres client.

Note: Requires enabling postgres feature.

Implementations

Provide access to the original database connection.

Trait Implementations

Executes sql via original database client

Formats the value using the given formatter. Read more

Creates migration table.

Inserts new migration to table.

Deletes migration from table.

Get applied migrations from table.

Applies SQL. Similar to BatchExecute, but returns migra Error. Read more

Applies SQL to upgrade database schema and inserts new migration to table. Read more

Applies SQL to downgrade database schema and deletes migration from table. Read more

Opens transaction in database connection.

Cancels (Rollbacks) transaction in database connection.

Apply (Commit) transaction in database connection.

Open database connection manually with additional migration table name parameter.

Open database connection with predefined migrations table name.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.