Enum AlterTableType

Source
#[repr(u8)]
pub enum AlterTableType {
Show 66 variants AddColumn = 0, AddColumnRecurse = 1, AddColumnToView = 2, ColumnDefault = 3, DropNotNull = 4, SetNotNull = 5, SetStatistics = 6, SetOptions = 7, ResetOptions = 8, SetStorage = 9, DropColumn = 10, DropColumnRecurse = 11, AddIndex = 12, ReAddIndex = 13, AddConstraint = 14, AddConstraintRecurse = 15, ReAddConstraint = 16, AlterConstraint = 17, ValidateConstraint = 18, ValidateConstraintRecurse = 19, ProcessedConstraint = 20, AddIndexConstraint = 21, DropConstraint = 22, DropConstraintRecurse = 23, ReAddComment = 24, AlterColumnType = 25, AlterColumnGenericOptions = 26, ChangeOwner = 27, ClusterOn = 28, DropCluster = 29, SetLogged = 30, SetUnLogged = 31, AddOids = 32, AddOidsRecurse = 33, DropOids = 34, SetTableSpace = 35, SetRelOptions = 36, ResetRelOptions = 37, ReplaceRelOptions = 38, EnableTrig = 39, EnableAlwaysTrig = 40, EnableReplicaTrig = 41, DisableTrig = 42, EnableTrigAll = 43, DisableTrigAll = 44, EnableTrigUser = 45, DisableTrigUser = 46, EnableRule = 47, EnableAlwaysRule = 48, EnableReplicaRule = 49, DisableRule = 50, AddInherit = 51, DropInherit = 52, AddOf = 53, DropOf = 54, ReplicaIdentity = 55, EnableRowSecurity = 56, DisableRowSecurity = 57, ForceRowSecurity = 58, NoForceRowSecurity = 59, GenericOptions = 60, AttachPartition = 61, DetachPartition = 62, AddIdentity = 63, SetIdentity = 64, DropIdentity = 65,
}

Variants§

§

AddColumn = 0

add column

§

AddColumnRecurse = 1

internal to commands/tablecmds.c

§

AddColumnToView = 2

implicitly via CREATE OR REPLACE VIEW

§

ColumnDefault = 3

alter column default

§

DropNotNull = 4

alter column drop not null

§

SetNotNull = 5

alter column set not null

§

SetStatistics = 6

alter column set statistics

§

SetOptions = 7

alter column set ( options )

§

ResetOptions = 8

alter column reset ( options )

§

SetStorage = 9

alter column set storage

§

DropColumn = 10

drop column

§

DropColumnRecurse = 11

internal to commands/tablecmds.c

§

AddIndex = 12

add index

§

ReAddIndex = 13

internal to commands/tablecmds.c

§

AddConstraint = 14

add constraint

§

AddConstraintRecurse = 15

internal to commands/tablecmds.c

§

ReAddConstraint = 16

internal to commands/tablecmds.c

§

AlterConstraint = 17

alter constraint

§

ValidateConstraint = 18

validate constraint

§

ValidateConstraintRecurse = 19

internal to commands/tablecmds.c

§

ProcessedConstraint = 20

pre-processed add constraint (local in parser/parse_utilcmd.c)

§

AddIndexConstraint = 21

add constraint using existing index

§

DropConstraint = 22

drop constraint

§

DropConstraintRecurse = 23

internal to commands/tablecmds.c

§

ReAddComment = 24

internal to commands/tablecmds.c

§

AlterColumnType = 25

alter column type

§

AlterColumnGenericOptions = 26

alter column OPTIONS (…)

§

ChangeOwner = 27

change owner

§

ClusterOn = 28

CLUSTER ON

§

DropCluster = 29

SET WITHOUT CLUSTER

§

SetLogged = 30

SET LOGGED

§

SetUnLogged = 31

SET UNLOGGED

§

AddOids = 32

SET WITH OIDS

§

AddOidsRecurse = 33

internal to commands/tablecmds.c

§

DropOids = 34

SET WITHOUT OIDS

§

SetTableSpace = 35

SET TABLESPACE

§

SetRelOptions = 36

SET (…) – AM specific parameters

§

ResetRelOptions = 37

RESET (…) – AM specific parameters

§

ReplaceRelOptions = 38

replace reloption list in its entirety

§

EnableTrig = 39

ENABLE TRIGGER name

§

EnableAlwaysTrig = 40

ENABLE ALWAYS TRIGGER name

§

EnableReplicaTrig = 41

ENABLE REPLICA TRIGGER name

§

DisableTrig = 42

DISABLE TRIGGER name

§

EnableTrigAll = 43

ENABLE TRIGGER ALL

§

DisableTrigAll = 44

DISABLE TRIGGER ALL

§

EnableTrigUser = 45

ENABLE TRIGGER USER

§

DisableTrigUser = 46

DISABLE TRIGGER USER

§

EnableRule = 47

ENABLE RULE name

§

EnableAlwaysRule = 48

ENABLE ALWAYS RULE name

§

EnableReplicaRule = 49

ENABLE REPLICA RULE name

§

DisableRule = 50

DISABLE RULE name

§

AddInherit = 51

INHERIT parent

§

DropInherit = 52

NO INHERIT parent

§

AddOf = 53

OF <type_name>

§

DropOf = 54

NOT OF

§

ReplicaIdentity = 55

REPLICA IDENTITY

§

EnableRowSecurity = 56

ENABLE ROW SECURITY

§

DisableRowSecurity = 57

DISABLE ROW SECURITY

§

ForceRowSecurity = 58

FORCE ROW SECURITY

§

NoForceRowSecurity = 59

NO FORCE ROW SECURITY

§

GenericOptions = 60

OPTIONS (…)

§

AttachPartition = 61

ATTACH PARTITION

§

DetachPartition = 62

DETACH PARTITION

§

AddIdentity = 63

ADD IDENTITY

§

SetIdentity = 64

SET identity column options

§

DropIdentity = 65

DROP IDENTITY

Trait Implementations§

Source§

impl Debug for AlterTableType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for AlterTableType

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for AlterTableType

Source§

fn eq(&self, other: &AlterTableType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for AlterTableType

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for AlterTableType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,