Struct sea_query::extension::postgres::TypeDropStatement [−][src]
pub struct TypeDropStatement { /* fields omitted */ }
This is supported on crate feature
backend-postgres
only.Implementations
Drop a type
use sea_query::{*, extension::postgres::Type}; struct FontFamily; impl Iden for FontFamily { fn unquoted(&self, s: &mut dyn std::fmt::Write) { write!(s, "{}", "font_family").unwrap(); } } assert_eq!( Type::drop() .if_exists() .name(FontFamily) .restrict() .to_string(PostgresQueryBuilder), r#"DROP TYPE IF EXISTS "font_family" RESTRICT"# );
pub fn names<T, I>(&mut self, names: I) -> &mut Self where
T: IntoIden,
I: IntoIterator<Item = T>,
pub fn build_collect<T: TypeBuilder>(
&self,
type_builder: T,
collector: &mut dyn FnMut(Value)
) -> String
pub fn build_collect_ref<T: TypeBuilder>(
&self,
type_builder: &T,
collector: &mut dyn FnMut(Value)
) -> String
Build corresponding SQL statement and return SQL string
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for TypeDropStatement
impl Send for TypeDropStatement
impl Sync for TypeDropStatement
impl Unpin for TypeDropStatement
impl !UnwindSafe for TypeDropStatement
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self