pub struct DropTable<'a> {
pub table_name: PostgresIdentifier<'a>,
pub cascade: bool,
}
Expand description
Render a DROP TABLE
statement.
let drop_table = DropTable { table_name: "Cat".into(), cascade: false };
assert_eq!(drop_table.to_string(), r#"DROP TABLE "Cat""#);
let drop_table = DropTable { table_name: "Cat".into(), cascade: true };
assert_eq!(drop_table.to_string(), r#"DROP TABLE "Cat" CASCADE"#);
Fields§
§table_name: PostgresIdentifier<'a>
The name of the table to be dropped.
cascade: bool
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for DropTable<'a>
impl<'a> Send for DropTable<'a>
impl<'a> Sync for DropTable<'a>
impl<'a> Unpin for DropTable<'a>
impl<'a> UnwindSafe for DropTable<'a>
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