/// Get schema for a base table or view in the recipe.
Get schema for a base table or view in the recipe.
Get schema for a base table or view in the recipe .
pub(super) fn schema_for(&self, name: &str) -> Option<Schema> {
        let inc = self.inc.as_ref().expect("Recipe not applied");
        match inc.get_base_schema(name) {
            None => {
                let s = match self.resolve_alias(name) {
                    None => inc.get_view_schema(name),
                    Some(ref internal_qn) => inc.get_view_schema(internal_qn),
                };
                s.map(Schema::View)
            }
            Some(s) => Some(Schema::Table(s)),
        }
    }
pub ( super ) fn schema_for ( & self , name : & str ) -> Option < Schema > { let inc = self . inc . as_ref ( ) . expect ( " " ) ; match inc . get_base_schema ( name ) { None => { let s = match self . resolve_alias ( name ) { None => inc . get_view_schema ( name ) , Some ( ref internal_qn ) => inc . get_view_schema ( internal_qn ) , } ; s . map ( Schema :: View ) } Some ( s ) => Some ( Schema :: Table ( s ) ) , } }
Get schema for a base table or view in the recipe.
Get schema for a base table or view in the recipe .
&self
name
&str