Struct prql_compiler::semantic::Context
source · pub struct Context { /* private fields */ }
Expand description
Context of the pipeline.
Implementations§
source§impl Context
impl Context
sourcepub fn find_main_rel(
&self,
path: &[String]
) -> Result<(&TableExpr, Ident), Option<String>>
pub fn find_main_rel( &self, path: &[String] ) -> Result<(&TableExpr, Ident), Option<String>>
Finds that main pipeline given a path to either main itself or its parent module. Returns main expr and fq ident of the decl.
pub fn find_main( &self, path: &[String] ) -> Result<(&Decl, Ident), Option<String>>
pub fn find_query_def(&self, main: &Ident) -> Option<&QueryDef>
sourcepub fn find_mains(&self) -> Vec<Ident>
pub fn find_mains(&self) -> Vec<Ident>
Finds all main pipelines.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Context
impl<'de> Deserialize<'de> for Context
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 RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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