pub struct SchemaChange {
pub catalog: String,
pub name: String,
pub drop: bool,
pub quiet: bool,
pub or_replace: bool,
pub cascade: bool,
}Expand description
A bound CREATE SCHEMA or DROP SCHEMA.
Only the name is resolved here. Whether the schema is there is a question for the catalog the
statement runs against, which is where IF NOT EXISTS, IF EXISTS and OR REPLACE are
answered.
Fields§
§catalog: StringThe database the schema is in.
name: StringThe schema’s own name.
drop: boolWhether this is a DROP rather than a CREATE.
quiet: boolWhether a create over a schema that is there, or a drop of one that is not, does nothing.
or_replace: boolWhether a create drops a schema that is there first, which a schema that holds anything refuses.
cascade: boolWhether a drop takes everything in the schema with it.
Trait Implementations§
Source§impl Clone for SchemaChange
impl Clone for SchemaChange
Source§impl Debug for SchemaChange
impl Debug for SchemaChange
impl Eq for SchemaChange
Source§impl PartialEq for SchemaChange
impl PartialEq for SchemaChange
impl StructuralPartialEq for SchemaChange
Auto Trait Implementations§
impl Freeze for SchemaChange
impl RefUnwindSafe for SchemaChange
impl Send for SchemaChange
impl Sync for SchemaChange
impl Unpin for SchemaChange
impl UnsafeUnpin for SchemaChange
impl UnwindSafe for SchemaChange
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