Struct sql_parser::ast::defs::statement::CreateIndexStatement [−][src]
pub struct CreateIndexStatement<T: AstInfo> {
pub name: Option<Ident>,
pub on_name: UnresolvedObjectName,
pub key_parts: Option<Vec<Expr<T>>>,
pub with_options: Vec<WithOption>,
pub if_not_exists: bool,
}
Expand description
CREATE INDEX
Fields
name: Option<Ident>
Optional index name.
on_name: UnresolvedObjectName
ON
table or view name
key_parts: Option<Vec<Expr<T>>>
Expressions that form part of the index key. If not included, the key_parts will be inferred from the named object.
with_options: Vec<WithOption>
if_not_exists: bool
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for CreateIndexStatement<T> where
<T as AstInfo>::Id: RefUnwindSafe,
<T as AstInfo>::ObjectName: RefUnwindSafe,
impl<T> Send for CreateIndexStatement<T> where
<T as AstInfo>::Id: Send,
<T as AstInfo>::ObjectName: Send,
impl<T> Sync for CreateIndexStatement<T> where
<T as AstInfo>::Id: Sync,
<T as AstInfo>::ObjectName: Sync,
impl<T> Unpin for CreateIndexStatement<T> where
<T as AstInfo>::ObjectName: Unpin,
impl<T> UnwindSafe for CreateIndexStatement<T> where
<T as AstInfo>::Id: UnwindSafe,
<T as AstInfo>::ObjectName: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Formats an object with the “alternative” format ({:#}
) and returns it.
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more