pub enum SchemaConflict {
Removed(ColumnDefinition),
Changed {
persisted: ColumnDefinition,
declared: ColumnDefinition,
},
AddedNotNullable(ColumnDefinition),
}Expand description
Why a declared schema is not an additive extension of a persisted one.
Variants§
Removed(ColumnDefinition)
A persisted attribute is absent from the declaration.
Changed
A persisted attribute is declared with a different name, type, or nullability.
Fields
§
persisted: ColumnDefinitionDefinition already persisted.
§
declared: ColumnDefinitionDefinition declared with the same identifier.
AddedNotNullable(ColumnDefinition)
A new attribute is declared non-nullable, so rows written before it existed could not read it as null.
Trait Implementations§
Source§impl Clone for SchemaConflict
impl Clone for SchemaConflict
Source§impl Debug for SchemaConflict
impl Debug for SchemaConflict
Source§impl Display for SchemaConflict
impl Display for SchemaConflict
impl Eq for SchemaConflict
Source§impl Error for SchemaConflict
impl Error for SchemaConflict
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for SchemaConflict
impl PartialEq for SchemaConflict
impl StructuralPartialEq for SchemaConflict
Auto Trait Implementations§
impl Freeze for SchemaConflict
impl RefUnwindSafe for SchemaConflict
impl Send for SchemaConflict
impl Sync for SchemaConflict
impl Unpin for SchemaConflict
impl UnsafeUnpin for SchemaConflict
impl UnwindSafe for SchemaConflict
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