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)
) -> Stringpub fn build_collect_ref<T: TypeBuilder>(
&self,
type_builder: &T,
collector: &mut dyn FnMut(Value)
) -> StringBuild corresponding SQL statement and return SQL string
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for TypeDropStatementimpl !Send for TypeDropStatementimpl !Sync for TypeDropStatementimpl Unpin for TypeDropStatementimpl !UnwindSafe for TypeDropStatementBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V