Skip to main content

StatementFact

Enum StatementFact 

Source
pub enum StatementFact {
Show 41 variants CreateSchema { name: QualifiedName, if_not_exists: bool, }, AlterSchema { name: QualifiedName, new_name: Option<Ident>, }, DropSchema { names: Vec<QualifiedName>, if_exists: bool, cascade: bool, }, CreateTable { name: QualifiedName, if_not_exists: bool, as_select: bool, persistence: PersistenceFact, columns: Vec<ColumnFact>, foreign_keys: Vec<FkFact>, table_constraints: Vec<TableConstraintFact>, partition_by: Option<String>, partition_of: Option<QualifiedName>, }, CreateView { name: QualifiedName, or_replace: bool, depends_on: Vec<QualifiedName>, }, AlterView { name: QualifiedName, new_name: Option<Ident>, }, CreateMaterializedView { name: QualifiedName, depends_on: Vec<QualifiedName>, }, AlterMaterializedView { name: QualifiedName, new_name: Option<Ident>, }, RefreshMaterializedView { name: QualifiedName, concurrently: bool, }, CreateIndex { name: QualifiedName, relation: QualifiedName, if_not_exists: bool, concurrently: bool, using_method: Option<String>, has_predicate: bool, }, CreatePolicy { name: String, table: QualifiedName, }, DropPolicy { name: String, table: QualifiedName, if_exists: bool, }, CreateTrigger { name: String, table: QualifiedName, }, DropTrigger { name: String, table: QualifiedName, if_exists: bool, }, AlterTable { name: QualifiedName, actions: Vec<AlterTableActionFact>, }, AlterIndex { name: QualifiedName, actions: Vec<AlterIndexActionFact>, }, CreateType(CreateTypeFact), AlterType(AlterTypeFact), CreateDomain { name: QualifiedName, base_type: String, }, AlterDomain { name: QualifiedName, }, DropDomain { names: Vec<QualifiedName>, if_exists: bool, }, CreateSequence { name: QualifiedName, if_not_exists: bool, owned_by: Option<(QualifiedName, String)>, }, AlterSequence { name: QualifiedName, owned_by: Option<(QualifiedName, String)>, }, DropSequence { names: Vec<QualifiedName>, if_exists: bool, }, DropTable { name: QualifiedName, if_exists: bool, cascade: bool, }, DropView { names: Vec<QualifiedName>, if_exists: bool, }, DropMaterializedView { names: Vec<QualifiedName>, if_exists: bool, }, DropIndex { names: Vec<QualifiedName>, if_exists: bool, concurrently: bool, }, SetSearchPath { target: SearchPathTarget, }, BeginTransaction, CommitTransaction, RollbackTransaction, RollbackToSavepoint { name: String, }, Savepoint { name: String, }, ReleaseSavepoint { name: String, }, PrepareTransaction { name: String, }, SetTransaction, SetConstraints, OpaqueBlock, Execute, Vacuum { is_full: bool, },
}

Variants§

§

CreateSchema

Fields

§if_not_exists: bool
§

AlterSchema

Fields

§new_name: Option<Ident>
§

DropSchema

Fields

§if_exists: bool
§cascade: bool
§

CreateTable

Fields

§if_not_exists: bool
§as_select: bool
§persistence: PersistenceFact
§columns: Vec<ColumnFact>
§foreign_keys: Vec<FkFact>
§table_constraints: Vec<TableConstraintFact>
§partition_by: Option<String>
§partition_of: Option<QualifiedName>
§

CreateView

Fields

§or_replace: bool
§depends_on: Vec<QualifiedName>
§

AlterView

Fields

§new_name: Option<Ident>
§

CreateMaterializedView

Fields

§depends_on: Vec<QualifiedName>
§

AlterMaterializedView

Fields

§new_name: Option<Ident>
§

RefreshMaterializedView

Fields

§concurrently: bool
§

CreateIndex

Fields

§relation: QualifiedName
§if_not_exists: bool
§concurrently: bool
§using_method: Option<String>
§has_predicate: bool
§

CreatePolicy

Fields

§name: String
§

DropPolicy

Fields

§name: String
§if_exists: bool
§

CreateTrigger

Fields

§name: String
§

DropTrigger

Fields

§name: String
§if_exists: bool
§

AlterTable

§

AlterIndex

§

CreateType(CreateTypeFact)

§

AlterType(AlterTypeFact)

§

CreateDomain

Fields

§base_type: String
§

AlterDomain

Fields

§

DropDomain

Fields

§if_exists: bool
§

CreateSequence

Fields

§if_not_exists: bool
§

AlterSequence

Fields

§

DropSequence

Fields

§if_exists: bool
§

DropTable

Fields

§if_exists: bool
§cascade: bool
§

DropView

Fields

§if_exists: bool
§

DropMaterializedView

Fields

§if_exists: bool
§

DropIndex

Fields

§if_exists: bool
§concurrently: bool
§

SetSearchPath

Fields

§

BeginTransaction

§

CommitTransaction

§

RollbackTransaction

§

RollbackToSavepoint

Fields

§name: String
§

Savepoint

Fields

§name: String
§

ReleaseSavepoint

Fields

§name: String
§

PrepareTransaction

Fields

§name: String
§

SetTransaction

§

SetConstraints

§

OpaqueBlock

§

Execute

§

Vacuum

Fields

§is_full: bool

Trait Implementations§

Source§

impl Clone for StatementFact

Source§

fn clone(&self) -> StatementFact

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StatementFact

Source§

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

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

impl PartialEq for StatementFact

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 StructuralPartialEq for StatementFact

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.