Struct sea_query::index::IndexDropStatement
source ยท pub struct IndexDropStatement { /* private fields */ }
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""#
);
Implementationsยง
sourceยงimpl IndexDropStatement
impl IndexDropStatement
pub fn to_string<T: SchemaBuilder>(&self, schema_builder: T) -> String
pub fn build<T: SchemaBuilder>(&self, schema_builder: T) -> String
pub fn build_any(&self, schema_builder: &dyn SchemaBuilder) -> String
Trait Implementationsยง
sourceยงimpl Clone for IndexDropStatement
impl Clone for IndexDropStatement
sourceยงfn clone(&self) -> IndexDropStatement
fn clone(&self) -> IndexDropStatement
Returns a copy 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 IndexDropStatement
impl Debug for IndexDropStatement
sourceยงimpl Default for IndexDropStatement
impl Default for IndexDropStatement
sourceยงfn default() -> IndexDropStatement
fn default() -> IndexDropStatement
Returns the โdefault valueโ for a type. Read more
sourceยงimpl SchemaStatementBuilder for IndexDropStatement
impl SchemaStatementBuilder for IndexDropStatement
sourceยงfn build<T: SchemaBuilder>(&self, schema_builder: T) -> String
fn build<T: SchemaBuilder>(&self, schema_builder: T) -> String
Build corresponding SQL statement for certain database backend and return SQL string
sourceยงfn build_any(&self, schema_builder: &dyn SchemaBuilder) -> String
fn build_any(&self, schema_builder: &dyn SchemaBuilder) -> String
Build corresponding SQL statement for certain database backend and return SQL string
sourceยงfn to_string<T: SchemaBuilder>(&self, schema_builder: T) -> String
fn to_string<T: SchemaBuilder>(&self, schema_builder: T) -> String
Build corresponding SQL statement for certain database backend and return SQL string