pub struct SqlRoot {
pub statements: Vec<SqlStatement>,
pub span: Range<usize>,
}Expand description
SQL root node representing a collection of SQL statements.
Fields§
§statements: Vec<SqlStatement>The list of SQL statements in the script.
span: Range<usize>The full span of the SQL script.
Trait Implementations§
Source§impl AsDocument for SqlRoot
Available on crate feature oak-pretty-print only.
impl AsDocument for SqlRoot
Available on crate feature
oak-pretty-print only.Source§fn as_document(&self) -> Document<'_>
fn as_document(&self) -> Document<'_>
Converts this type to a document for pretty printing.
Source§impl<'de> Deserialize<'de> for SqlRoot
impl<'de> Deserialize<'de> for SqlRoot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SqlRoot
impl RefUnwindSafe for SqlRoot
impl Send for SqlRoot
impl Sync for SqlRoot
impl Unpin for SqlRoot
impl UnsafeUnpin for SqlRoot
impl UnwindSafe for SqlRoot
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