pub struct MigrationExplain {
pub script: String,
pub version: Option<String>,
pub statements: Vec<StatementExplain>,
pub error: Option<String>,
}Expand description
EXPLAIN analysis for a single migration.
Fields§
§script: StringFilename of the migration script.
version: Option<String>Version string, or None for repeatable migrations.
statements: Vec<StatementExplain>EXPLAIN results for each statement in the migration.
error: Option<String>The statement failure that stopped the preview, if any.
A DDL statement that fails inside the preview transaction used to be
swallowed at debug level, and PostgreSQL then aborts the transaction
so every later statement fails too — which was also swallowed. The
dry run therefore listed every statement as if it were fine. Recording
the first real failure, and stopping there, is the whole point of a
preview.
Trait Implementations§
Source§impl Debug for MigrationExplain
impl Debug for MigrationExplain
Auto Trait Implementations§
impl Freeze for MigrationExplain
impl RefUnwindSafe for MigrationExplain
impl Send for MigrationExplain
impl Sync for MigrationExplain
impl Unpin for MigrationExplain
impl UnsafeUnpin for MigrationExplain
impl UnwindSafe for MigrationExplain
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more