pub struct ParsedSqlFile { /* private fields */ }Expand description
A single SQL file plus all Statement.
Implementations§
Source§impl ParsedSqlFile
impl ParsedSqlFile
Sourcepub fn parse(file: SqlSource) -> Result<Self, ParserError>
pub fn parse(file: SqlSource) -> Result<Self, ParserError>
Sourcepub fn path(&self) -> Option<&Path>
pub fn path(&self) -> Option<&Path>
Getter method for returning the current object’s file’s path
Sourcepub fn path_into_path_buf(&self) -> Option<PathBuf>
pub fn path_into_path_buf(&self) -> Option<PathBuf>
Getter that returns an PathBuf for the path rather than &Path
Sourcepub fn statements(&self) -> &[Statement]
pub fn statements(&self) -> &[Statement]
Getter method for returning the vector of all statements Statement
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParsedSqlFile
impl RefUnwindSafe for ParsedSqlFile
impl Send for ParsedSqlFile
impl Sync for ParsedSqlFile
impl Unpin for ParsedSqlFile
impl UnwindSafe for ParsedSqlFile
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