#[non_exhaustive]pub enum SchemaSyncChangeKind {
Show 13 variants
CreatedTable,
AddedColumn,
RenamedColumn,
ModifiedColumn,
AddedPrimaryKey,
AddedIndex,
CreatedEnumType,
AddedEnumValue,
AddedCheck,
ValidatedCheck,
CommentedColumn,
AddedForeignKey,
ValidatedForeignKey,
}Expand description
schema 同步变更类型。
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CreatedTable
创建整张表。
AddedColumn
增加字段。
RenamedColumn
原位改名字段并保留全部数据。
ModifiedColumn
在旧数据预检通过后修改字段类型、NULL 或默认值。
AddedPrimaryKey
增加主键。
AddedIndex
增加普通或唯一索引。
CreatedEnumType
创建 PostgreSQL 原生枚举类型。
AddedEnumValue
向 PostgreSQL 原生枚举类型追加取值。
AddedCheck
增加 CHECK 约束。
ValidatedCheck
仅验证(VALIDATE CONSTRAINT)一个既有但尚未验证的 CHECK 约束。
CommentedColumn
更新列注释(PostgreSQL COMMENT ON COLUMN)。
AddedForeignKey
增加外键约束。
ValidatedForeignKey
仅验证(VALIDATE CONSTRAINT)一个既有但尚未验证的外键约束。
Trait Implementations§
Source§impl Clone for SchemaSyncChangeKind
impl Clone for SchemaSyncChangeKind
impl Copy for SchemaSyncChangeKind
Source§impl Debug for SchemaSyncChangeKind
impl Debug for SchemaSyncChangeKind
impl Eq for SchemaSyncChangeKind
Source§impl PartialEq for SchemaSyncChangeKind
impl PartialEq for SchemaSyncChangeKind
impl StructuralPartialEq for SchemaSyncChangeKind
Auto Trait Implementations§
impl Forget for SchemaSyncChangeKind
impl Freeze for SchemaSyncChangeKind
impl Move for SchemaSyncChangeKind
impl RefUnwindSafe for SchemaSyncChangeKind
impl Send for SchemaSyncChangeKind
impl Sync for SchemaSyncChangeKind
impl Unpin for SchemaSyncChangeKind
impl UnsafeUnpin for SchemaSyncChangeKind
impl UnwindSafe for SchemaSyncChangeKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more