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 IndexDropStatement
impl Send for IndexDropStatement
impl Sync for IndexDropStatement
impl Unpin for IndexDropStatement
impl !UnwindSafe for IndexDropStatement
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self