Struct TypeDropStatement
pub struct TypeDropStatement { /* private fields */ }Implementations§
§impl TypeDropStatement
impl TypeDropStatement
pub fn new() -> Self
pub fn schema<I>(&mut self, name: I) -> &mut Selfwhere
I: IntoIden,
pub fn name<I>(&mut self, name: I) -> &mut Selfwhere
I: IntoIden,
pub fn name<I>(&mut self, name: I) -> &mut Selfwhere
I: IntoIden,
Drop a type.
use sea_query::{extension::mssql::Type, tests_cfg::*, *};
assert_eq!(
Type::drop().name(Font::Name).to_string(MsSqlQueryBuilder),
r#"DROP TYPE [name]"#
);use sea_query::{extension::mssql::Type, tests_cfg::*, *};
assert_eq!(
Type::drop()
.schema(Font::Table)
.name(Font::Name)
.if_exists()
.to_string(MsSqlQueryBuilder),
r#"DROP TYPE IF EXISTS [font].[name]"#
);pub fn if_exists(&mut self) -> &mut Self
pub fn if_exists(&mut self) -> &mut Self
Set IF EXISTS
§impl TypeDropStatement
impl TypeDropStatement
pub fn build_ref<T: TypeStatementBuilder>(&self, type_builder: &T) -> String
pub fn build_collect<T: TypeStatementBuilder>( &self, type_builder: T, sql: &mut impl SqlWriter, ) -> String
pub fn build_collect_ref<T: TypeStatementBuilder>( &self, type_builder: &T, sql: &mut impl SqlWriter, ) -> String
pub fn to_string<T>(&self, type_builder: T) -> Stringwhere
T: TypeStatementBuilder + QueryBuilder,
pub fn to_string<T>(&self, type_builder: T) -> Stringwhere
T: TypeStatementBuilder + QueryBuilder,
Build corresponding SQL statement and return SQL string
Trait Implementations§
§impl Clone for TypeDropStatement
impl Clone for TypeDropStatement
§fn clone(&self) -> TypeDropStatement
fn clone(&self) -> TypeDropStatement
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 moreAuto Trait Implementations§
impl Freeze for TypeDropStatement
impl RefUnwindSafe for TypeDropStatement
impl Send for TypeDropStatement
impl Sync for TypeDropStatement
impl Unpin for TypeDropStatement
impl UnwindSafe for TypeDropStatement
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