pub struct Unlock {
pub unlock_span: Span,
pub tables_span: Span,
}Expand description
Represent a MySQL UNLOCK statement
Statement, Issues};
let sql = "UNLOCK TABLES;";
let mut issues = Issues::new(sql);
let mut stmts = parse_statements(sql, &mut issues, &options);
let unlock_stmt = match stmts.pop() {
Some(Statement::Unlock(u)) => u,
_ => panic!("We should get an unlock statement"),
};Fields§
§unlock_span: Span§tables_span: SpanTrait Implementations§
Auto Trait Implementations§
impl Freeze for Unlock
impl RefUnwindSafe for Unlock
impl Send for Unlock
impl Sync for Unlock
impl Unpin for Unlock
impl UnsafeUnpin for Unlock
impl UnwindSafe for Unlock
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