Struct sea_query::index::IndexDropStatement [−][src]
pub struct IndexDropStatement { /* fields omitted */ }Expand description
Drop an index for an existing table
Examples
use sea_query::{*, tests_cfg::*}; let index = Index::drop() .name("idx-glyph-aspect") .table(Glyph::Table) .to_owned(); assert_eq!( index.to_string(MysqlQueryBuilder), r#"DROP INDEX `idx-glyph-aspect` ON `glyph`"# ); assert_eq!( index.to_string(PostgresQueryBuilder), r#"DROP INDEX "idx-glyph-aspect""# ); assert_eq!( index.to_string(SqliteQueryBuilder), r#"DROP INDEX `idx-glyph-aspect` ON `glyph`"# );
Implementations
Trait Implementations
Build corresponding SQL statement for certain database backend and return SQL string
Build corresponding SQL statement for certain database backend and return SQL string
Build corresponding SQL statement for certain database backend and return SQL string
Auto Trait Implementations
impl !RefUnwindSafe for IndexDropStatementimpl !Send for IndexDropStatementimpl !Sync for IndexDropStatementimpl Unpin for IndexDropStatementimpl !UnwindSafe for IndexDropStatementBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V