pub struct CreateIndexStatement {
pub opt_index: Option<Index>,
pub index_name: String,
pub index_type: Option<IndexType>,
pub table: Table,
pub key_part: Vec<KeyPart>,
pub index_option: Option<Vec<IndexOption>>,
pub algorithm_option: Option<AlgorithmType>,
pub lock_option: Option<LockType>,
}
Expand description
parse CREATE [UNIQUE | FULLTEXT | SPATIAL] INDEX index_name [index_type] ON tbl_name (key_part,...) [index_option] [algorithm_option | lock_option] ...
key_part: {col_name [(length)] | (expr)} [ASC | DESC]
index_option: { KEY_BLOCK_SIZE [=] value | index_type | WITH PARSER parser_name | COMMENT 'string' | {VISIBLE | INVISIBLE} | ENGINE_ATTRIBUTE [=] 'string' | SECONDARY_ENGINE_ATTRIBUTE [=] 'string' }
index_type: USING {BTREE | HASH}
algorithm_option: ALGORITHM [=] {DEFAULT | INPLACE | COPY}
lock_option: LOCK [=] {DEFAULT | NONE | SHARED | EXCLUSIVE}
Fields§
§opt_index: Option<Index>
§index_name: String
§index_type: Option<IndexType>
§table: Table
§key_part: Vec<KeyPart>
§index_option: Option<Vec<IndexOption>>
§algorithm_option: Option<AlgorithmType>
§lock_option: Option<LockType>
Implementations§
Source§impl CreateIndexStatement
impl CreateIndexStatement
pub fn parse( i: &str, ) -> IResult<&str, CreateIndexStatement, ParseSQLError<&str>>
Trait Implementations§
Source§impl Clone for CreateIndexStatement
impl Clone for CreateIndexStatement
Source§fn clone(&self) -> CreateIndexStatement
fn clone(&self) -> CreateIndexStatement
Returns a duplicate of the value. Read more
1.0.0 · 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 CreateIndexStatement
impl Debug for CreateIndexStatement
Source§impl<'de> Deserialize<'de> for CreateIndexStatement
impl<'de> Deserialize<'de> for CreateIndexStatement
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
Source§impl Display for CreateIndexStatement
impl Display for CreateIndexStatement
Source§impl Hash for CreateIndexStatement
impl Hash for CreateIndexStatement
Source§impl PartialEq for CreateIndexStatement
impl PartialEq for CreateIndexStatement
Source§impl Serialize for CreateIndexStatement
impl Serialize for CreateIndexStatement
impl Eq for CreateIndexStatement
impl StructuralPartialEq for CreateIndexStatement
Auto Trait Implementations§
impl Freeze for CreateIndexStatement
impl RefUnwindSafe for CreateIndexStatement
impl Send for CreateIndexStatement
impl Sync for CreateIndexStatement
impl Unpin for CreateIndexStatement
impl UnwindSafe for CreateIndexStatement
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