pub struct DropSchema<'a> {
pub drop_span: Span,
pub schema_span: Span,
pub if_exists: Option<Span>,
pub schema: Identifier<'a>,
}Expand description
Represent a drop schema statement
let sql = "DROP SCHEMA myschema;";
let mut issues = Issues::new(sql);
let mut stmts = parse_statements(sql, &mut issues, &options);
let s: DropSchema = match stmts.pop() {
Some(Statement::DropSchema(s)) => *s,
_ => panic!("We should get a drop schema statement")
};
assert!(s.schema.as_str() == "myschema");Fields§
§drop_span: SpanSpan of “DROP”
schema_span: SpanSpan of “SCHEMA”
if_exists: Option<Span>Span of “IF EXISTS” if specified
schema: Identifier<'a>Name of schema to drop
Trait Implementations§
Source§impl<'a> Clone for DropSchema<'a>
impl<'a> Clone for DropSchema<'a>
Source§fn clone(&self) -> DropSchema<'a>
fn clone(&self) -> DropSchema<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for DropSchema<'a>
impl<'a> Debug for DropSchema<'a>
Auto Trait Implementations§
impl<'a> Freeze for DropSchema<'a>
impl<'a> RefUnwindSafe for DropSchema<'a>
impl<'a> Send for DropSchema<'a>
impl<'a> Sync for DropSchema<'a>
impl<'a> Unpin for DropSchema<'a>
impl<'a> UnsafeUnpin for DropSchema<'a>
impl<'a> UnwindSafe for DropSchema<'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