Struct ExtensionDropStatement   
pub struct ExtensionDropStatement {
    pub(crate) name: String,
    pub(crate) schema: Option<String>,
    pub(crate) version: Option<String>,
    pub(crate) if_exists: bool,
    pub(crate) restrict: bool,
    pub(crate) cascade: bool,
}Expand description
Creates a new “DROP EXTENSION” statement for PostgreSQL
§Synopsis
ⓘ
DROP EXTENSION [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]§Example
Drops the “ltree” extension if it exists.
use sea_query::{extension::postgres::Extension, *};
assert_eq!(
    Extension::drop()
        .name("ltree")
        .cascade()
        .if_exists()
        .to_string(PostgresQueryBuilder),
    r#"DROP EXTENSION IF EXISTS ltree CASCADE"#
);§References
Fields§
§name: String§schema: Option<String>§version: Option<String>§if_exists: bool§restrict: bool§cascade: boolImplementations§
§impl ExtensionDropStatement
 
impl ExtensionDropStatement
pub fn new() -> ExtensionDropStatement
pub fn name<T>(&mut self, name: T) -> &mut ExtensionDropStatement
pub fn name<T>(&mut self, name: T) -> &mut ExtensionDropStatement
Sets the name of the extension to be dropped.
pub fn if_exists(&mut self) -> &mut ExtensionDropStatement
pub fn if_exists(&mut self) -> &mut ExtensionDropStatement
Uses “IF EXISTS” on Drop Extension Statement.
pub fn cascade(&mut self) -> &mut ExtensionDropStatement
pub fn cascade(&mut self) -> &mut ExtensionDropStatement
Uses “CASCADE” on Drop Extension Statement.
pub fn restrict(&mut self) -> &mut ExtensionDropStatement
pub fn restrict(&mut self) -> &mut ExtensionDropStatement
Uses “RESTRICT” on Drop Extension Statement.
§impl ExtensionDropStatement
 
impl ExtensionDropStatement
pub fn build_ref<T>(&self, extension_builder: &T) -> Stringwhere
    T: ExtensionBuilder,
pub fn build_collect<T>(
    &self,
    extension_builder: T,
    sql: &mut dyn SqlWriter,
) -> Stringwhere
    T: ExtensionBuilder,
pub fn build_collect_ref<T>(
    &self,
    extension_builder: &T,
    sql: &mut dyn SqlWriter,
) -> Stringwhere
    T: ExtensionBuilder,
pub fn to_string<T>(&self, extension_builder: T) -> Stringwhere
    T: ExtensionBuilder + QueryBuilder,
pub fn to_string<T>(&self, extension_builder: T) -> Stringwhere
    T: ExtensionBuilder + QueryBuilder,
Build corresponding SQL statement and return SQL string
Trait Implementations§
§impl Clone for ExtensionDropStatement
 
impl Clone for ExtensionDropStatement
§fn clone(&self) -> ExtensionDropStatement
 
fn clone(&self) -> ExtensionDropStatement
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 more§impl Debug for ExtensionDropStatement
 
impl Debug for ExtensionDropStatement
§impl Default for ExtensionDropStatement
 
impl Default for ExtensionDropStatement
§fn default() -> ExtensionDropStatement
 
fn default() -> ExtensionDropStatement
Returns the “default value” for a type. Read more
§impl PartialEq for ExtensionDropStatement
 
impl PartialEq for ExtensionDropStatement
impl Eq for ExtensionDropStatement
impl StructuralPartialEq for ExtensionDropStatement
Auto Trait Implementations§
impl Freeze for ExtensionDropStatement
impl RefUnwindSafe for ExtensionDropStatement
impl Send for ExtensionDropStatement
impl Sync for ExtensionDropStatement
impl Unpin for ExtensionDropStatement
impl UnwindSafe for ExtensionDropStatement
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
 
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more