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
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
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client