pub struct CreateStmt {
pub relation: RelationKind,
pub table_elts: Vec<TableElt>,
pub inh_relations: Vec<Value>,
pub partbound: Option<Value>,
pub partspec: Option<Value>,
pub of_typename: Option<Value>,
pub constraints: Vec<Constraint>,
pub options: Vec<Value>,
pub oncommit: OnCommitAction,
pub tablespacename: Option<String>,
pub if_not_exists: bool,
}
Fields§
§relation: RelationKind
relation to create
table_elts: Vec<TableElt>
column definitions (list of ColumnDef)
inh_relations: Vec<Value>
relations to inherit from (list of inhRelation)
partbound: Option<Value>
FOR VALUES clause
partspec: Option<Value>
PARTITION BY clause
of_typename: Option<Value>
OF typename
constraints: Vec<Constraint>
constraints (list of Constraint nodes)
options: Vec<Value>
options from WITH clause
oncommit: OnCommitAction
what do we do at COMMIT?
tablespacename: Option<String>
table space to use, or NULL
if_not_exists: bool
just do nothing if it already exists?
Trait Implementations§
Source§impl Debug for CreateStmt
impl Debug for CreateStmt
Source§impl<'de> Deserialize<'de> for CreateStmt
impl<'de> Deserialize<'de> for CreateStmt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CreateStmt
impl RefUnwindSafe for CreateStmt
impl Send for CreateStmt
impl Sync for CreateStmt
impl Unpin for CreateStmt
impl UnwindSafe for CreateStmt
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