pub struct SqlModelParser;Expand description
Fast-path SQL Model template parser extracting {{ ref(...) }} and {{ source(...) }} references.
Implementations§
Source§impl SqlModelParser
impl SqlModelParser
Sourcepub fn parse_frontmatter(
raw: &str,
) -> Result<(Option<StagingFrontmatter>, String)>
pub fn parse_frontmatter( raw: &str, ) -> Result<(Option<StagingFrontmatter>, String)>
Extracts YAML frontmatter and pure SQL content from raw model text.
If a --- block is present, YAML must parse successfully or this returns an error
(no silent fallback that leaves --- in the SQL body).
Sourcepub fn extract_dependencies(sql: &str) -> Result<Vec<DependencyRef>>
pub fn extract_dependencies(sql: &str) -> Result<Vec<DependencyRef>>
Fast-path extraction of all model and source dependencies from raw model SQL.
Auto Trait Implementations§
impl Freeze for SqlModelParser
impl RefUnwindSafe for SqlModelParser
impl Send for SqlModelParser
impl Sync for SqlModelParser
impl Unpin for SqlModelParser
impl UnsafeUnpin for SqlModelParser
impl UnwindSafe for SqlModelParser
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