[][src]Struct postgres_parser::nodes::IndexStmt

pub struct IndexStmt {
    pub idxname: Option<String>,
    pub relation: Option<Box<RangeVar>>,
    pub accessMethod: Option<String>,
    pub tableSpace: Option<String>,
    pub indexParams: Option<Vec<Node>>,
    pub indexIncludingParams: Option<Vec<Node>>,
    pub options: Option<Vec<Node>>,
    pub whereClause: Option<Box<Node>>,
    pub excludeOpNames: Option<Vec<Node>>,
    pub idxcomment: Option<String>,
    pub indexOid: Oid,
    pub oldNode: Oid,
    pub unique: bool,
    pub primary: bool,
    pub isconstraint: bool,
    pub deferrable: bool,
    pub initdeferred: bool,
    pub transformed: bool,
    pub concurrent: bool,
    pub if_not_exists: bool,
    pub reset_default_tblspc: bool,
}

Create Index Statement

This represents creation of an index and/or an associated constraint. If isconstraint is true, we should create a pg_constraint entry along with the index. But if indexOid isn't InvalidOid, we are not creating an index, just a UNIQUE/PKEY constraint using an existing index. isconstraint must always be true in this case, and the fields describing the index properties are empty.

Fields

idxname: Option<String>relation: Option<Box<RangeVar>>accessMethod: Option<String>tableSpace: Option<String>indexParams: Option<Vec<Node>>indexIncludingParams: Option<Vec<Node>>options: Option<Vec<Node>>whereClause: Option<Box<Node>>excludeOpNames: Option<Vec<Node>>idxcomment: Option<String>indexOid: OidoldNode: Oidunique: boolprimary: boolisconstraint: booldeferrable: boolinitdeferred: booltransformed: boolconcurrent: boolif_not_exists: boolreset_default_tblspc: bool

Trait Implementations

impl Debug for IndexStmt[src]

impl<'de> Deserialize<'de> for IndexStmt[src]

impl Eq for IndexStmt[src]

impl PartialEq<IndexStmt> for IndexStmt[src]

impl Serialize for IndexStmt[src]

impl StructuralEq for IndexStmt[src]

impl StructuralPartialEq for IndexStmt[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.