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
AlterSchema
DropSchema
CreateTable
Fields
§
name: QualifiedName§
persistence: PersistenceFact§
columns: Vec<ColumnFact>§
table_constraints: Vec<TableConstraintFact>§
partition_of: Option<QualifiedName>CreateView
AlterView
CreateMaterializedView
AlterMaterializedView
RefreshMaterializedView
CreateIndex
CreatePolicy
DropPolicy
CreateTrigger
DropTrigger
AlterTable
AlterIndex
CreateType(CreateTypeFact)
AlterType(AlterTypeFact)
CreateDomain
AlterDomain
Fields
§
name: QualifiedNameDropDomain
CreateSequence
AlterSequence
DropSequence
DropTable
DropView
DropMaterializedView
DropIndex
SetSearchPath
Fields
§
target: SearchPathTargetBeginTransaction
CommitTransaction
RollbackTransaction
RollbackToSavepoint
Savepoint
ReleaseSavepoint
PrepareTransaction
SetTransaction
SetConstraints
OpaqueBlock
Execute
Vacuum
Trait Implementations§
Source§impl Clone for StatementFact
impl Clone for StatementFact
Source§fn clone(&self) -> StatementFact
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatementFact
impl Debug for StatementFact
Source§impl PartialEq for StatementFact
impl PartialEq for StatementFact
Source§fn eq(&self, other: &StatementFact) -> bool
fn eq(&self, other: &StatementFact) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StatementFact
Auto Trait Implementations§
impl Freeze for StatementFact
impl RefUnwindSafe for StatementFact
impl Send for StatementFact
impl Sync for StatementFact
impl Unpin for StatementFact
impl UnsafeUnpin for StatementFact
impl UnwindSafe for StatementFact
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<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