pub struct LocatedDdl {
pub op: DdlOperation,
pub start: usize,
pub end: usize,
pub focus: usize,
}Expand description
A DDL operation together with its position in the source SQL.
Offsets are byte offsets into the original SQL text (comments included), so diagnostics can point at the statement that produced the operation even though the analysis itself runs on a comment-stripped copy.
Fields§
§op: DdlOperationThe parsed operation.
start: usizeByte offset of the first character of the statement.
end: usizeByte offset just past the last character of the statement.
focus: usizeByte offset of the token this operation is best anchored to: the
column name for ADD COLUMN, otherwise the leading keyword.
Trait Implementations§
Source§impl Clone for LocatedDdl
impl Clone for LocatedDdl
Source§fn clone(&self) -> LocatedDdl
fn clone(&self) -> LocatedDdl
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 moreAuto Trait Implementations§
impl Freeze for LocatedDdl
impl RefUnwindSafe for LocatedDdl
impl Send for LocatedDdl
impl Sync for LocatedDdl
impl Unpin for LocatedDdl
impl UnsafeUnpin for LocatedDdl
impl UnwindSafe for LocatedDdl
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